GDB, dwarf1, and static variables in .so's

David Korn
Thu Oct 4 06:42:00 GMT 2001

>-----Original Message-----
>From: Graeme Peterson []
>Sent: 12 November 2001 19:55

>This only happens if the shared object is compiled with Dwarf Version-1,
>(level 1 or 2).  The debug format of the main() object does not matter.
>If the shared object is compiled using dwarf2 or stabs, all is well.

>Has anyone else observed this?  Comments?

  AFAIUI Dwarf-1 is obsolete.  It never supported C++ well and the support
for it in the toolchain hasn't been maintained much for a while.  I believe
this sort of problem is down to the limited ability of d-1 to express
levels of scoping, but I'm not an expert.  On the whole I'd just recommend
abandoning dwarf1 and using stabs or d2.

Burn your ID card!
Help support the campaign, copy this into your .sig!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list