From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30400 invoked by alias); 6 Aug 2002 13:11:52 -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 30386 invoked from network); 6 Aug 2002 13:11:50 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 6 Aug 2002 13:11:50 -0000 Received: from dsl254-114-118.nyc1.dsl.speakeasy.net ([216.254.114.118] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17c472-0003GV-00; Tue, 06 Aug 2002 08:11:01 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17c475-0007Jb-00; Tue, 06 Aug 2002 09:11:03 -0400 Date: Tue, 06 Aug 2002 06:11:00 -0000 From: Daniel Jacobowitz To: Vinayak P Risbud Cc: gdb Subject: Re: assembly editing in GDB Message-ID: <20020806131101.GA22456@nevyn.them.org> Mail-Followup-To: Vinayak P Risbud , gdb References: <3D4F6B35.A5D0AA07@multitech.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D4F6B35.A5D0AA07@multitech.co.in> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00027.txt.bz2 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