Linky
asked on
Some GDB help please
I have a command prompt program that I want to step through, step by step and be able to see whats in each register. Is there a simple way to do this without the source and without setting a breakpoint? I'd like to see each assembly line too.
I remember I knew how to do it back a few semesters ago, now I need help.
I remember I knew how to do it back a few semesters ago, now I need help.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
objdump does not shows the source code in assembly. It shows only the source file names, functions names (mangled /demangled ones ).
(gdb) stop in main
will halt the program at the very first line of main.
(gdb) stepi
will go to next instruction in assembly code.
stepi stands for step instruction.
(gdb) stop in main
will halt the program at the very first line of main.
(gdb) stepi
will go to next instruction in assembly code.
stepi stands for step instruction.
ASKER