Re: Disassemble in GDB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill wrote:
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


--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux