This is the mail archive of the gdb-patches@sourceware.org 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: [rfc] get rid of redundant data in c++ and java


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


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