This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb + gcc/g++ 3.x
- To: gdb at sources dot redhat dot com
- Subject: Re: gdb + gcc/g++ 3.x
- From: Scott Johnston <scott at accom dot com>
- Date: Wed, 17 Oct 2001 11:58:03 -0700
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 <n> in file "<file>". where <n> and <file> 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