Article View: comp.lang.asm.x86
Article #143Re: Debugging GNU assembler on FreeBSD
From: Simon Tatham
Date: Sat, 02 May 1998 00:00
Date: Sat, 02 May 1998 00:00
31 lines
2071 bytes
2071 bytes
<wbinvd@mail.bip.net> wrote: > I tried using GDB in linux, but AS can't include debugging stuff in the > .o files. Well, more specifically, it's designed to have debugging stuff passed straight through it from the compiler to the object file, rather than generating debugging info for the _assembly_ level. Hopefully when NASM finally gets round to this (don't hold your breath, people, I'm afraid) it will have options to do both. _Hopefully_. > What's even worse, you can only set breakpoints on labels in GDB, > not where you want the breakpoint to be set. Er, try reading the help a little more closely. You do need some special syntax (an asterisk), but it can be done: (gdb) help break Set breakpoint at specified line or function. Argument may be line number, function name, or "*" and an address. So you just do `break *0x80123ab' and it works fine. I've been doing it a lot for the last month, as it happens. With NASM, but the principle's the same. -- Simon Tatham. Trinity College, Cambridge, CB2 1TQ, England. <anakin@pobox.com> <sgt20@cam.ac.uk> "The distinction between the enlightened and the No (good) Web page. terminally confused is only apparent to the latter."
Technical Details
Message-ID:
<6iduva$de9$1@winter.news.erols.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6icd56$b46$1@winter.news.erols.com> <#1/1> <6id5sc$5s1$1@winter.news.erols.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,dcec7446a040194f X-Google-Attributes: gid11318c,public X-Google-Thread: 114917,dcec7446a040194f X-Google-Attributes: gid114917,public X-Google-Thread: 10ba33,dcec7446a040194f X-Google-Attributes: gid10ba33,public From: anakin@pobox.com (Simon Tatham) Subject: Re: Debugging GNU assembler on FreeBSD Date: 1998/05/02 Message-ID: <6iduva$de9$1@winter.news.erols.com> X-Deja-AN: 349491104 Approved: <johnfine@erols.com> References: <6icd56$b46$1@winter.news.erols.com> <#1/1> <6id5sc$5s1$1@winter.news.erols.com> X-Complaints-To: abuse@erols.com X-UIDL: 04442e744e X-Trace: winter.news.erols.com 894074666 13769 207.172.241.116 (2 May 1998 02:04:26 GMT) Organization: University of Cambridge, England Newsgroups: comp.lang.asm.x86,gnu.gcc.help,gnu.g++.help