This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Breaking in a c++ method with current language set to c.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 5 Mar 2007 07:41:43 -0500
- Subject: Re: Breaking in a c++ method with current language set to c.
- References: <45EB906B.6070408@portugalmail.pt>
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