From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro_alves@portugalmail.pt>
Cc: gdb-patches@sourceware.org
Subject: Re: Breaking in a c++ method with current language set to c.
Date: Mon, 05 Mar 2007 12:41:00 -0000 [thread overview]
Message-ID: <20070305124143.GA14835@caradoc.them.org> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2007-03-05 12:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 3:37 Pedro Alves
2007-03-05 12:41 ` Daniel Jacobowitz [this message]
2007-03-11 21:07 ` Pedro Alves
2007-03-27 18:58 ` Daniel Jacobowitz
2007-03-29 0:58 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070305124143.GA14835@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro_alves@portugalmail.pt \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox