This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [dictionary] set bounds info correctly in symtabs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]