Breaking in a c++ method with current language set to c.

Daniel Jacobowitz drow@false.org
Mon Mar 5 12:41:00 GMT 2007


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



More information about the Gdb-patches mailing list