Dwarf 1 or 2?

Jason Merrill jason@cygnus.com
Fri Dec 12 18:04:00 GMT 1997


>>>>> Mike Stump <mrs@wrs.com> writes:

> If one was going to switch to dwarf, what would be the better dwarf to
> pick?  Dwarf 1, or 2?  I ask because quite a few different groups
> (processor abi groups) seem to picking up dwarf 1, and no one seems to
> be behind 2 (except Linux and sgi).

Dwarf 2 is clearly technically superior.  Dwarf 1 has more existing
implementations, and therefore more political clout.

> I'm interested in user experiences with dwarf 2 systems, (sparc v9
> linux, iris6) with gdb and how well it holds up in relationship to
> stabs.

One important win of dwarf2 over stabs on x86 linux is that it allows for
debugging of frame-pointerless code.  In theory, that is; gdb doesn't
grok the frame unwind info yet, but all the necessary info is there.

Jason



More information about the Gcc mailing list