This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/15210] New: GDB can't print variables insidemethods/functions in a class
- From: "sergiodj at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 27 Feb 2013 18:45:44 +0000
- Subject: [Bug c++/15210] New: GDB can't print variables insidemethods/functions in a class
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15210
Bug #: 15210
Summary: GDB can't print variables inside methods/functions in
a class
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: sergiodj@redhat.com
CC: jan.kratochvil@redhat.com, keiths@redhat.com
Depends on: 15203
Classification: Unclassified
FSF HEAD as of February 27th, 2013 cannot print variables inside
methods/functions in a class. Using the following program as the testcase:
class foo
{
public:
int bar()
{
int x;
if (x != 5)
{
x = 5;
}
}
};
int main()
{
foo myfoo;
myfoo.bar();
}
Here is what happens when one tried to do it:
(gdb) p 'foo::bar()::x'
../../../../gdb-src/gdb/cp-namespace.c:816: internal-error:
cp_lookup_nested_symbol called on a non-aggregate type.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.