This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units
- From: Jim Blandy <jimb at red-bean dot com>
- To: fnf at specifix dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 3 Jan 2006 15:15:39 -0800
- Subject: Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units
- References: <200601031517.50309.fnf@specifix.com>
On 1/3/06, Fred Fish <fnf@specifix.com> wrote:
> The patch also adds a proposed fix for the problem, which is to look
> in the current source symtab for the name, before scanning all the
> symtabs.
The test looks good; please commit that.
I have some questions about the patch, though.
get_current_source_symtab_and_line is a user-interface thing, and I'm
uncomfortable calling it from one of our fundamental lookup functions.
Why isn't the right block being passed to lookup_symbol in the first
place?