delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/29/07:01:19

Date: Fri, 29 Jun 2001 12:12:47 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <9791-Fri29Jun2001121247+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
In-reply-to: <3b3bea8a.253431390@news.primus.ca> (invalid@erehwon.invalid)
Subject: Re: Strange behavior of compiler.
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010626161749 DOT 17201K-100000 AT is> <3b3b4af5 DOT 212572777 AT news DOT primus DOT ca> <4331-Thu28Jun2001221650+0300-eliz AT is DOT elta DOT co DOT il> <3b3bea8a DOT 253431390 AT news DOT primus DOT ca>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: invalid AT erehwon DOT invalid (Graaagh the Mighty)
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 29 Jun 2001 05:53:43 GMT
> >
> >You are mixing object format with debug info format.  ELF is an object
> >file format.  The best format for debug info currently known to
> >humankind is DWARF2, and that's where DJGPP is heading: COFF object
> >format with DWARF2 debug info.
> 
> Okay, so where in this picture does the stabs format

stabs is another format for recording debug info.  It can coexist with
many object formats, like COFF, ELF, and others.

> and some problem
> or conflict between it and the available space in COFF images fit?

If you are talking about the "Line number overflow", then it is a
limitation of COFF debug information, not COFF object format.  COFF is
used for the object format and also for recording debug info in the
default DJGPP setup.  You can compile with -gstabs and get COFF object
file with stabs debug info.  In the future, you will be able to
compile with -gdwarf2 and get a COFF object file with DWARF2 debug
info.

> Because I distinctly remember a big discussion about that some months
> or a year ago (I was lurking at the time). The way I remember it,
> someone was having fits trying to get sensible debugging info from g++
> with hairy templates and inlines everywhere.

Serious C++ debugging isn't possible with anything but DWARF2.  For
example, namespaces cannot be supported with stabs, since stabs has no
provision for expressing namespaces.  (Btw, right now, GDB doesn't
support all the functionality of DWARF2, but its going there.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019