Disassemble in GDB
I wrote a simple hello world in c. how can i disassemble main() with gdb?
Cheers, Bill
Quoted 4 lines · Bill
I wrote a simple hello world in c. how can i disassemble
main()with gdb?Cheers, Bill
Read The Fine gdb Manual.
'info gdb' or
http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html
Quoted 2 lines · Bill
I wrote a simple hello world in c. how can i disassemble
main()with gdb?
"disassemble main"
Use the "-g" switch when you compile it. (note the effect of the "-O" switch, while you're at it)
Best,
Frank