GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /afs/umbc.edu/users/s/q/squire/home/cs313/where_64...done. (gdb) break main Breakpoint 1 at 0x4004d4: file where_64.asm, line 37. (gdb) run Starting program: /afs/umbc.edu/users/s/q/squire/home/cs313/where_64 Breakpoint 1, main () at where_64.asm:37 37 push rbx ; save callers registers Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.3.x86_64 (gdb) disassemble Dump of assembler code for function main: 0x00000000004004d0 <+0>: push %rbp 0x00000000004004d1 <+1>: mov %rsp,%rbp => 0x00000000004004d4 <+4>: push %rbx 0x00000000004004d5 <+5>: movabs $0x6008d4,%rdi 0x00000000004004df <+15>: lea 0x6008cc,%rsi 0x00000000004004e7 <+23>: lea 0x600930,%rdx 0x00000000004004ef <+31>: lea 0x400658,%rcx 0x00000000004004f7 <+39>: lea 0x4004d0,%r8 0x00000000004004ff <+47>: movabs $0x0,%rax 0x0000000000400509 <+57>: callq 0x4003b8 0x000000000040050e <+62>: movabs $0x6008d4,%rdi 0x0000000000400518 <+72>: movabs $0x6008cc,%rsi 0x0000000000400522 <+82>: movabs $0x600930,%rdx 0x000000000040052c <+92>: movabs $0x400658,%rcx 0x0000000000400536 <+102>: movabs $0x4004d0,%r8 0x0000000000400540 <+112>: movabs $0x0,%rax 0x000000000040054a <+122>: callq 0x4003b8 0x000000000040054f <+127>: pop %rbx 0x0000000000400550 <+128>: mov %rbp,%rsp 0x0000000000400553 <+131>: pop %rbp 0x0000000000400554 <+132>: movabs $0x0,%rax 0x000000000040055e <+142>: retq 0x000000000040055f <+143>: nop End of assembler dump. (gdb) x/60x main 0x4004d0
: 0xe5894855 0xd4bf4853 0x00006008 0x48000000 0x4004e0 : 0xcc25348d 0x48006008 0x3025148d 0x48006009 0x4004f0 : 0x58250c8d 0x4c004006 0xd025048d 0x48004004 0x400500 : 0x000000b8 0x00000000 0xfeaae800 0xbf48ffff 0x400510 : 0x006008d4 0x00000000 0x08ccbe48 0x00000060 0x400520 : 0xba480000 0x00600930 0x00000000 0x0658b948 0x400530 : 0x00000040 0xb8490000 0x004004d0 0x00000000 0x400540 : 0x0000b848 0x00000000 0x69e80000 0x5bfffffe 0x400550 : 0x5dec8948 0x0000b848 0x00000000 0x90c30000 0x400560 <__libc_csu_fini>: 0x6666c3f3 0x2e666666 0x00841f0f 0x00000000 0x400570 <__libc_csu_init>: 0x246c8948 0x64894cd8 0x8d48e024 0x20015b2d 0x400580 <__libc_csu_init+16>: 0x258d4c00 0x00200154 0x246c894c 0x74894ce8 0x400590 <__libc_csu_init+32>: 0x894cf024 0x48f8247c 0xd0245c89 0x38ec8348 0x4005a0 <__libc_csu_init+48>: 0x41e5294c 0x8949fd89 0xfdc148f6 0xd7894903 0x4005b0 <__libc_csu_init+64>: 0xfffddbe8 0xed8548ff 0xdb311c74 0x00401f0f (gdb) q A debugging session is active. Inferior 1 [process 23721] will be killed. Quit anyway? (y or n)