I now could use GDB to figure out the program counter.
First, compile the program using -g which would provide information that gdb could later use.
Second, run gdb target-program.
Third, set a breakpoint at the method you want to stop, for example, breakpoint incremnet.
Four, now run the program with run. Once the execution is stopped, try disas.
Now there should be disassembled codes for the method that you are interested in.
Sunday, July 16, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment