Re: debugging gcc 3.x c++

Daniel Jacobowitz
2002-02-12T22:33:16Z

On Tue, Feb 12, 2002 at 02:00:12PM -0800, Dan Conti wrote:
> Hi, i had ran into this bug before with gcc 3.0.3 and gdb 5.1, and was
> told that it was properly fixed in the current versions of gdb (to be
> specific, i was told that it was fixed in cvs between the 5.1 and 5.1.1
> release). In the cvs snapshot i checked and the 5.1.1 release, it's
> fixed in some but not all instances.
>
> Basically when i go to print some of my C++ classes in the debugger, i
> get a message saying "Value can't be converted to integer." There's a PR
> filed on this at:
>
> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&dat
> abase=gdb&pr=243
>
> Personally i am using a arm-elf cross toolchain, gcc 3.0.3 and gdb 5.1.1
> on a cygwin host.
>
> I have no problem fixing this myself if someone could point me in the
> right direction, since i'm not really familiar with gdb internals.

This is fixed in GDB CVS. It has been for a bit over a month now.
Could you give it a try?

I see on the PR trail that I told you this at the time. The
misunderstanding may come from 5.1.1 being released afterwards; that
does NOT contain the fix. 5.2 will.

> Also, something i'm not clear on, according to the gdb mailing lists
> page, 'gdb-prs' is a "Mailing list for discussing bugs submitted to the
> bug reporting database", but for some reason i can't post to this list
> about a bug submitted to the bug reporting database. Perhaps the
> description should mention that it's for testers only (i'm assuming this
> is the case?) ?

Actually, it's for GNATS use only. GNATS messages get copied there.

--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer