[rfc] get rid of redundant data in c++ and java
Daniel Jacobowitz
drow@false.org
Fri May 2 14:01:00 GMT 2008
On Fri, May 02, 2008 at 09:39:27AM -0400, Aleksandar Ristovski wrote:
> ChangeLog:
> * dwarf2read.c (add_partial_symbol): Do not add new psym for
> STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
> class as typedefs. See lookup_partial_symbol function.
> (new_symbol): Similar to add_partial_symbol, do not create symbol for
> the typedef. See lookup_block_symbol.
> * symtab.c (symbol_matches_domain): New function, takes care
> of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
> (lookup_partial_symbol): Use symbol_matches_domain to see if the
> found psym domain matches the given domain.
> (lookup_block_symbol): Likewise.
Thanks. Joel, could you give this a try with GNAT? If it works for
Joel, it's OK to commit.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list