From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22682 invoked by alias); 6 Aug 2002 14:01:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22653 invoked from network); 6 Aug 2002 14:01:03 -0000 Received: from unknown (HELO saturn.billgatliff.com) (209.251.101.200) by sources.redhat.com with SMTP; 6 Aug 2002 14:01:03 -0000 Received: by saturn.billgatliff.com (Postfix, from userid 500) id EA1404E0004; Tue, 6 Aug 2002 09:01:01 -0500 (CDT) Date: Tue, 06 Aug 2002 07:01:00 -0000 From: "William A. Gatliff" To: Vinayak P Risbud , gdb Subject: Re: assembly editing in GDB Message-ID: <20020806090101.B30435@saturn.billgatliff.com> Reply-To: bgat@billgatliff.com References: <3D4F6B35.A5D0AA07@multitech.co.in> <20020806131101.GA22456@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020806131101.GA22456@nevyn.them.org>; from drow@mvista.com on Tue, Aug 06, 2002 at 09:11:01AM -0400 X-SW-Source: 2002-08/txt/msg00030.txt.bz2 One other thing: if you do this: (gdb) display/i $pc then gdb will actually show the asm instruction it's about to run. :^) b.g. As On Tue, Aug 06, 2002 at 09:11:01AM -0400, Daniel Jacobowitz wrote: > On Tue, Aug 06, 2002 at 11:52:46AM +0530, Vinayak P Risbud wrote: > > Can I run and debug, an assembly program in GDB ? > > Sure. > > > If yes, how can I edit and write the assembly program > > in GDB ? > > You can't. GDB does not have any support for editing or assembling > code. You compile the assembly as normal; if you're using the GNU > tools you can use "gcc -g" and it will generally arrange to put > line-number information in the object module. > > -- > Daniel Jacobowitz Carnegie Mellon University > MontaVista Software Debian GNU/Linux Developer -- Bill Gatliff bgat@billgatliff.com