From: Tom Tromey <tromey@redhat.com>
To: "Liu\, Lei" <lei.liu2@windriver.com>
Cc: gdb@sourceware.org
Subject: Re: Looking up enum constant symbols from C++ base classes
Date: Mon, 01 Nov 2010 19:08:00 -0000 [thread overview]
Message-ID: <m3lj5camep.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4CCE89F7.10908@windriver.com> (Lei Liu's message of "Mon, 01 Nov 2010 17:35:51 +0800")
>>>>> ">" == Liu, Lei <lei.liu2@windriver.com> writes:
>> class A {
>> public:
>> enum E {X,Y,Z};
>> };
>> I tried to plant a conditional breakpoint in line 14 as shown in comment
>> but got a error shows 'No symbol "X" in current context'. The symbol
>> 'X' is accessible in that scope. It seems that gdb has a problem to look
>> up enum constant symbols derived from base classes.
Yeah.
>> I added some code in cp_lookup_symbol_nonlocal to make gdb look up symbols
>> from all base classes. It works fine. Is this a right fix?
It might be, but we'd have to see the patch to be sure.
Tom
next prev parent reply other threads:[~2010-11-01 19:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 9:35 Liu, Lei
2010-11-01 19:08 ` Tom Tromey [this message]
2010-11-02 2:16 ` Liu, Lei
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=m3lj5camep.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=lei.liu2@windriver.com \
/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