From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Kotler Subject: Re: Disassemble in GDB Date: Sun, 01 Jun 2008 10:32:22 -0400 Message-ID: <4842B2F6.7000702@verizon.net> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-reply-to: Sender: linux-assembly-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Bill Cc: linux-assembly@vger.kernel.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