From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Johnston To: gdb@sources.redhat.com Subject: Re: gdb + gcc/g++ 3.x Date: Wed, 17 Oct 2001 11:59:00 -0000 Message-id: <3BCDD4BB.D8799CE9@accom.com> X-SW-Source: 2001-10/msg00179.html References: < 3BC1E656.7F705DA7@cisco.com > < 20011008135114.A6657@nevyn.them.org > < 20011008164135.A20141@redhat.com > On Mon, 8 Oct 2001 17:15:25 -0400, Daniel Jacobowitz wrote: > gdb often can not display classes compiled with g++; I'm not sure > exactly where the problem is, but I expect someone will chime in with > it. There's also some namespace problems which require a little > DWARF2 work that no one has yet committed, I think. De-referencing a pointer (for the gdb print command) to a C++ class instance yields a message "Value can't be converted to integer." Setting a breakpoint by line-number (used by emacs M-x gud-break) yields a "No line in file "". where and are accurate. Verified on gdb 2001-10-12-cvs built with gcc-3.0.1 on RH Linux 6.2 using "set extension-language .c c++". C++ source code compiled by gcc-3.0.1 with -g -O2 -fPIC -Wno-deprecated. Scott Johnston