* Disassemble in GDB @ 2008-06-01 7:51 Bill 2008-06-01 10:15 ` Claudio Fontana 2008-06-01 14:32 ` Frank Kotler 0 siblings, 2 replies; 3+ messages in thread From: Bill @ 2008-06-01 7:51 UTC (permalink / raw) To: linux-assembly I wrote a simple hello world in c. how can i disassemble main() with gdb? Cheers, Bill ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Disassemble in GDB 2008-06-01 7:51 Disassemble in GDB Bill @ 2008-06-01 10:15 ` Claudio Fontana 2008-06-01 14:32 ` Frank Kotler 1 sibling, 0 replies; 3+ messages in thread From: Claudio Fontana @ 2008-06-01 10:15 UTC (permalink / raw) To: Bill; +Cc: linux-assembly On Sun, Jun 1, 2008 at 9:51 AM, Bill <bill.clinton@fredastaire.ch> wrote: > 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Disassemble in GDB 2008-06-01 7:51 Disassemble in GDB Bill 2008-06-01 10:15 ` Claudio Fontana @ 2008-06-01 14:32 ` Frank Kotler 1 sibling, 0 replies; 3+ messages in thread From: Frank Kotler @ 2008-06-01 14:32 UTC (permalink / raw) To: Bill; +Cc: linux-assembly 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-01 14:32 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-06-01 7:51 Disassemble in GDB Bill 2008-06-01 10:15 ` Claudio Fontana 2008-06-01 14:32 ` Frank Kotler
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).