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: Breaking in a c++ method with current language set to c.


On Mon, Mar 05, 2007 at 03:37:15AM +0000, Pedro Alves wrote:
> I've looked at several ways to fix it, and all but this one turned out more
> invasive than I hoped for, because current_language is used in a several 
> places
> (in symtab.c).  Instead, I simply wrapped linespec.c:find_method with a
> set_language (lang of A), guarded with a cleanup.

How much invasive?  I don't like the global "current language"; like
the global "selected frame", it's prone to this sort of problem when
we'd really rather be looking at a different language.


-- 
Daniel Jacobowitz
CodeSourcery


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