Mail Archives: djgpp-workers/2002/02/04/05:46:26
On 2 Feb 2002 at 17:13, Eli Zaretskii wrote:
> > From: pavenis AT lanet DOT lv
> > Date: Sat, 2 Feb 2002 16:16:25 +0200
> > >
> > > Does it matter what debug info (COFF, stabs, DWARF2) was it compiled
> > > with?
> >
> > First impression is that it happens if stabs or DWARF debugging information
> > is used in 2 or more files. It's not enough to have only one file with
> > DWARF or stabs debugging info. Also it seems that use of COFF debugging info
> > does not cause problems.
>
> If this isn't DJGPP-specific, please report to the GDB mailing list.
> There's quite a lot going on lately with the debug info readers in
> GDB, due to significant changes in GCC 3.x. Perhaps this is some bug
> they need to know about.
>
Reproduced it under Linux:
- stripped debug information fromn one my static object library
- linked one executable (more that one C++ source file) with
this library
- command 'where' showed wrong locations in main.cc for
procedures in stripped library
It doesn't seem to happen with shared libraries though, but they are usualy
built with debug info.
Perhaps I should prepare some nice test example to be sent to GDB
mailing list.
Anyway I think it could also be some problem in linker at time of merging
debug info from fultiple source files.
Andris
- Raw text -