This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/573: cannot find nested classes with g++ 3.x
- From: piefel at informatik dot hu-berlin dot de
- To: gdb-gnats at sources dot redhat dot com
- Cc: loewis at informatik dot hu-berlin dot de
- Date: 18 Jun 2002 09:34:33 -0000
- Subject: gdb/573: cannot find nested classes with g++ 3.x
- Reply-to: piefel at informatik dot hu-berlin dot de
>Number: 573
>Category: gdb
>Synopsis: cannot find nested classes with g++ 3.x
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 18 02:38:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: piefel@informatik.hu-berlin.de
>Release: gdb 5.2
>Organization:
>Environment:
Linux 2.4.18-k7 #1 Sun Apr 14 13:19:11 EST 2002 i686 unknown
gcc version 3.1.1 20020606 (Debian prerelease)
>Description:
Given the source:
namespace ns {
struct tinyclass
{
virtual int prod_sel() { return 42; }
};
}
int
main()
{
ns::tinyclass* Tiny = new ns::tinyclass;
}
gdb cannot find the class tinyclass anymore:
GNU gdb 5.2
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x80484b8: file tiny.cc, line 11.
(gdb) r
Starting program: /tmp/ktest/a.out
Breakpoint 1, main () at tiny.cc:11
11 ns::tinyclass* Tiny = new ns::tinyclass;
(gdb) n
12 }
(gdb) p Tiny->prod_sel()
can't find class named `ns::tinyclass', as given by C++ RTTI
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: