no symbol in current context problem when debug the program in gdb
Kai Henningsen
kai.extern@googlemail.com
Sun Sep 21 12:28:00 GMT 2008
Please don't crosspost between gcc and gcc-help. Thanks.
On Sat, Sep 20, 2008 at 02:48, Peng Yu <pengyu.ut@gmail.com> wrote:
> On Mon, Sep 15, 2008 at 2:54 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
>>
>> Hi,
>>
>> I have the following program. When I step in to test's constructor, I
>> would be able to print the variable three. It says
>> (gdb) n
>> 7 T three = 3;
>> (gdb) n
>> 8 std::cout << three << std::endl;
>> (gdb) p three
>> No symbol "three" in current context.
>>
>> According to gdb mailing list, this is a bug in GCC. I'm wondering if
>> this issue has been resolved in the later versions of GCC.
Isn't this a case of the stuff that the
var-tracking-assignments-branch
(http://gcc.gnu.org/wiki/Var_Tracking_Assignments) tries to fix?
More information about the Gcc
mailing list