How to force GDB to disassemble code when it says "No function contains program counter for selected frame"?
Debugging a program, starting at the absolute address 0x00402200
, I get the following output when trying to disassemble the code at this address:
[New Thread 65212.0x10378]
Breakpoint 1, 0x00402200 in ?? ()
(gdb) stepi
0x00402202 in ?? ()
(gdb) stepi
0x00402207 in ?? ()
(gdb) stepi
0x0040220a in ?? ()
(gdb) stepi
0x0040220f in ?? ()
(gdb) disassemble
No function contains program counter for selected frame.
(gdb) stepi
0x00401000 in start ()
The file being debugged is a Win32 PE for educational purposes (reverse engineering).
Is there some way of telling GDB to start disassembling at the address? Otherwise, what are my alternatives (i.e. other tools)?
disassemble 0x402202, +20
?layout asm
/layout reg
is nice.