This is the mail archive of the gdb@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, c++ & namespaces


I have a C++ program using namespaces.
If I try to display a pointer to an instance like

sys::net::UDPSocket* s;

I get the following error from gdb (trough ddd):

can't find class named sys::net::UDPSocket, as given by C++ RTTI

If I have a reference to such an instance. No problem.
I use -g to compile with debug information.


Is there a limitation for namespace support in gdb, g++ ?

-V outputs:
GNU gdb 5.2.1
gcc version 3.3.1
ddd 3.3.1

-- 
Marcel Lanz
http://www.ds9.ch/lanz/
marcel.lanz@ds9.ch | marcel.lanz@n-1.ch
GnuPG: F975 C6F7 04C8 642B 6DF4  4DF4 2945 F02A 797E 7DAB


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