Mail Archives: djgpp/2001/06/29/07:01:19
> 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 -