From owner-freebsd-questions Sun May 16 14:24:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kiwi.pinnacle.co.nz (pinnacle.internet.co.nz [210.48.55.133]) by hub.freebsd.org (Postfix) with ESMTP id BAC6414C9C for ; Sun, 16 May 1999 14:24:26 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kiwi.pinnacle.co.nz (8.9.3/8.9.3) with ESMTP id JAA10415; Mon, 17 May 1999 09:19:05 +1200 (NZST) Date: Mon, 17 May 1999 09:19:05 +1200 (NZST) From: Jonathan Chen To: Ugo Matrangolo Cc: freebsd-questions@FreeBSD.ORG Subject: Re: newbie : gdb and 386's machine code In-Reply-To: <373EB204.BD1DE491@tin.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 16 May 1999, Ugo Matrangolo wrote: [..] > After compiling this with nasm & gcc ,it runs fine . Now , what if > i want to debug the asm code instruction by instruction ? What you need to do is to get nasm (which I'm unfamiliar with) to generate debugging information; which can then be used by gdb. An alternative would be to write your assembler code using gcc to compile it, so that you get the benefits of gcc's debug-info generation. Jonathan Chen --------------------------------------------------------------------- Who dares nothing, need hope for nothing To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message