Re: Disassemble in GDB

Frank Kotler <[email protected]>
Newsgroups gmane.linux.assembly
Message-ID <[email protected]>
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.