🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm.x86
Article #144

Re: Debugging GNU assembler on FreeBSD

#144
From: Eric Fowler
Date: Sat, 02 May 1998 00:00
26 lines
1943 bytes
wbinvd@mail.bip.net wrote in article
<6id5sc$5s1$1@winter.news.erols.com>...
> In article <6icd56$b46$1@winter.news.erols.com>#1/1,
>   "Eric Fowler" <v-ericfo@microsoft.com> wrote:
> >

> 
> I tried using GDB in linux, but AS can't include debugging stuff in the
> .o files. What's even worse, you can only set breakpoints on labels in
GDB,
> not where you want the breakpoint to be set.
> It's hard to debug an ASM only program with GNU tools.

Wowser! How the h*ll can anyone write any ASM at all! This gives the word
'pain' a whole new meaning. 

[lessee here ... compile C code with -g -S, look at output .. compile
assembler with -g flag, debug .. mumble]
Looks like the compiler has to stud the assembly-lang output with debug
glop, which gets passed to the assember, then the linker. There is no
earthly way I can reproduce all that by hand ... egad. 
It would be nice if I could write an assembler file 'a.s', then fool it
with gcc -S -g a.s -o aa.s , and get aa.s loaded with symbols, but no go. 
*sigh*
Well I suppose this is why people use high level languages ... or CodeView.
Technical Details
Message-ID: <6iduvb$de9$2@winter.news.erols.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: 10ba33,dcec7446a040194f
X-Google-Attributes: gid10ba33,public
X-Google-Thread: 114917,dcec7446a040194f
X-Google-Attributes: gid114917,public
From: "Eric Fowler" <v-ericfo@microsoft.com>
Subject: Re: Debugging GNU assembler on FreeBSD
Date: 1998/05/02
Message-ID: <6iduvb$de9$2@winter.news.erols.com>
X-Deja-AN: 349491105
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: e6f26f2a18
X-Trace: winter.news.erols.com 894074667 13769 207.172.241.116 (2 May 1998 02:04:27 GMT)
Organization: Eastman Software
Newsgroups: comp.lang.asm.x86,gnu.gcc.help,gnu.g++.help