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: [RFA] choose symbol from given block's objfile first.


> > I'm not so sure.  It seems like you could make a multi-objfile test case
> > where an incomplete type is incorrectly resolved to a type in another
> > objfile.

I created a PR for that:
http://sourceware.org/bugzilla/show_bug.cgi?id=14093

I noted in the PR description that applying the same treatment as
what we did here would not be sufficient if the same type name is
used twice in the same objfile for two distinct types. In that case,
I don't know if there is really a solution other than forcing the
user to cast the result to a type using an expression that includes
sufficient information to pick the correct one.

-- 
Joel


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