From owner-freebsd-questions@FreeBSD.ORG Sat Aug 16 11:13:41 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4134C37B401 for ; Sat, 16 Aug 2003 11:13:41 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8173043F93 for ; Sat, 16 Aug 2003 11:13:40 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 31484 invoked by uid 1000); 16 Aug 2003 18:13:40 -0000 Date: Sat, 16 Aug 2003 11:13:40 -0700 From: Joshua Oreman To: Vladimir Ciobanu Message-ID: <20030816181340.GC31356@webserver> References: <3F3DCBC6.10805@rhaaw.rdsnet.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F3DCBC6.10805@rhaaw.rdsnet.ro> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Debugging symbols with nasm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 18:13:41 -0000 On Sat, Aug 16, 2003 at 09:14:30AM +0300 or thereabouts, Vladimir Ciobanu wrote: > I'm not sure whether this is the best list to post to, but it's my > first guess. I'm using nasm to compile some code I wrote. The > developer-handbook suggests I use "-f elf", so that's what I did. Then I > linked it with ld. The program works as expected, but I can't debug it > with gdb; it reports "no debugging symbols found". > I've tried to get the possible debugging formats nasm can output, and > I get "null" for both elf and aoutb ( ld can't even link aoutb .o files ). > Is there a way I could debug my nasm-compiled assembler sources, > preferably with gdb ? I don't mind any binary format that can run on > FreeBSD, nor any other linker. > Any suggestions are welcome. GDB is just too good for debugging ASM stuff. I recommend ALD, the Assembly Language Debugger. Install /usr/ports/devel/ald, and run `ald myprogram'. It doesn't need debug symbols beyond what NASM already provides :-) -- Josh