This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/573: cannot find nested classes with g++ 3.x


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]