All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Kotler <fbkotler@verizon.net>
To: Bill <bill.clinton@fredastaire.ch>
Cc: linux-assembly@vger.kernel.org
Subject: Re: Disassemble in GDB
Date: Sun, 01 Jun 2008 10:32:22 -0400	[thread overview]
Message-ID: <4842B2F6.7000702@verizon.net> (raw)
In-Reply-To: <g1tke5$cnh$1@ger.gmane.org>

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



      parent reply	other threads:[~2008-06-01 14:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-01  7:51 Disassemble in GDB Bill
2008-06-01 10:15 ` Claudio Fontana
2008-06-01 14:32 ` Frank Kotler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4842B2F6.7000702@verizon.net \
    --to=fbkotler@verizon.net \
    --cc=bill.clinton@fredastaire.ch \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.