This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] get rid of redundant data in c++ and java
- From: Daniel Jacobowitz <drow at false dot org>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, brobecker at adacore dot com
- Date: Fri, 2 May 2008 09:51:32 -0400
- Subject: Re: [rfc] get rid of redundant data in c++ and java
- References: <47AD383E.7000205@qnx.com> <20080501192532.GG22218@caradoc.them.org> <481B198F.30701@qnx.com>
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