This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [dictionary] set bounds info correctly in symtabs
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 15 Dec 2003 17:50:35 -0500
- Subject: Re: [dictionary] set bounds info correctly in symtabs
- References: <m31xr5dba4.fsf@coconut.kealia.com>
On Mon, Dec 15, 2003 at 01:24:51PM -0800, David Carlton wrote:
> For a while, local users have been complaining that GDB generates tons
> of "pc in read in psymtab, but not in symtab" messages. Which is
> annoying (and the gratuitous extra "in" doesn't help). :-) I finally
> got around to tracking this down; it turns out that the psymtabs are
> correct and the symtabs are wrong in this case. Specifically, in
> dwarf2read.c, psymtab_to_symtab_1 and read_file_scope, when
> determining the PC bounds of the file, assume that all functions are
> children of the DW_TAG_compile_unit die, which isn't the case once
> DW_TAG_namesepace appears. (Actually, it seems to me that
> DW_TAG_class_type could already cause problems; it's just that GCC
> doesn't generate debug info in a form that could trigger this issue.)
Seems reasonable. I believe that Jason has suggested that namespaces
should be handled the same way - i.e. a declaration in the namespace
and a definition outside - in the version of the namespace support
being included in 3.4.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer