I\'m outside gdb\'s target executable and I don\'t even have a stack that corresponds to that target. I want to single-step anyway, so that I can verify what\'s going on in
Instead of gdb, run gdbtui. Or run gdb with the -tui switch. Or press C-x C-a after entering gdb. Now you're in GDB's TUI mode.
Enter layout asm to make the upper window display assembly -- this will automatically follow your instruction pointer, although you can also change frames or scroll around while debugging. Press C-x s to enter SingleKey mode, where run continue up down finish etc. are abbreviated to a single key, allowing you to walk through your program very quickly.
+---------------------------------------------------------------------------+ B+>|0x402670push %r15 | |0x402672 mov %edi,%r15d | |0x402675 push %r14 | |0x402677 push %r13 | |0x402679 mov %rsi,%r13 | |0x40267c push %r12 | |0x40267e push %rbp | |0x40267f push %rbx | |0x402680 sub $0x438,%rsp | |0x402687 mov (%rsi),%rdi | |0x40268a movq $0x402a10,0x400(%rsp) | |0x402696 movq $0x0,0x408(%rsp) | |0x4026a2 movq $0x402510,0x410(%rsp) | +---------------------------------------------------------------------------+ child process 21518 In: main Line: ?? PC: 0x402670 (gdb) file /opt/j64-602/bin/jconsole Reading symbols from /opt/j64-602/bin/jconsole...done. (no debugging symbols found)...done. (gdb) layout asm (gdb) start (gdb)