[PATCH] DWARF2 namespace support

Jakub Jelinek jakub@redhat.com
Tue Nov 13 15:03:00 GMT 2001


On Tue, Nov 06, 2001 at 06:47:07AM -0500, Daniel Berlin wrote:
> good to start implementing or are implemented (The location lists
> support the 3.0 extension to allow a base address specifier, so if a
> variable is in two sections, depending on the pc, we can properly
> describe the location, for instance), it might make sense to add a
> -gdwarf-3 flag, and only output namespaces, etc, when it is given,
> until more debuggers support the dwarf 3 draft features.

I'd vote for -gdwarf-3 too.
E.g. your -feliminate-dwarf2-dups should be supported for -gdwarf-3 only
on 64bit arches, since otherwise you go against Dwarf-2 spec
(Dwarf-2 sais:
This type of reference (DW_FORM_ref_addr) is the size of an address on the
target architecture, while Dwarf-3 draft sais DW_FORM_ref_addr is 4/8 bytes
depending on whether it is 32 or 64bit dwarf format, similarly to
DW_FORM_strp).

	Jakub



More information about the Gcc-patches mailing list