This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] dwarf2read.c: Don't read pc/line-number mapping for type units
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 10 Jan 2012 07:51:13 +0400
- Subject: Re: [patch] dwarf2read.c: Don't read pc/line-number mapping for type units
- References: <20120110014616.957501E25C7@ruffy2.mtv.corp.google.com>
> Type units don't need the pc/line-number mapping,
> and this can save a lot of space.
Types in general have a sloc, and we sometimes use them. For instance,
trying the following:
(gdb) ptype ambiguous_type
Multiple matches for ambiguous_type
[0] cancel
[1] pck.ambiguous_type at pck.adb:8
[2] bar.ambiguous_type at bar.adb:9
>
Is your patch going to affect the above?
> Joel: I'd also like to check this into the 7.4 branch.
> IMO it's safe enough.
No problem on my end if the concerns above are unfounded.
Although I know I do not know this file as well as you do.
--
Joel