This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: c++/1461: static member variables sometimes not viewable
- From: Ronald Van Iwaarden <ron at vaniwaarden dot org>
- To: chastain at sourceware dot org
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 2 Dec 2003 20:48:00 -0000
- Subject: Re: c++/1461: static member variables sometimes not viewable
- Reply-to: Ronald Van Iwaarden <ron at vaniwaarden dot org>
The following reply was made to PR c++/1461; it has been noted by GNATS.
From: Ronald Van Iwaarden <ron@vaniwaarden.org>
To: chastain@sourceware.org, <chastain@sourceware.org>,
<gdb-prs@sources.redhat.com>, <nobody@sources.redhat.com>,
<ron@vaniwaarden.org>, <gdb-gnats@sources.redhat.com>
Cc:
Subject: Re: c++/1461: static member variables sometimes not viewable
Date: Tue, 2 Dec 2003 13:44:22 -0700 (MST)
This indeed functions as desired in 6.0. It had been bothering me for a
long time and, by the time I got around to submitting it, you had fixed
it! Thanks!
--Ron
PS: Sorry for submitting an already fixed bug. I remember downloading a
later version 5.2.??? and it also showed the problem but I never tried 5.3
or 6.0...
On 2 Dec 2003 chastain@sourceware.org wrote:
> Synopsis: static member variables sometimes not viewable
>
> Responsible-Changed-From-To: unassigned->chastain
> Responsible-Changed-By: chastain
> Responsible-Changed-When: Tue Dec 2 17:32:40 2003
> Responsible-Changed-Why:
>
> I'll take it.
> State-Changed-From-To: open->feedback
> State-Changed-By: chastain
> State-Changed-When: Tue Dec 2 17:32:40 2003
> State-Changed-Why:
>
> Hello,
>
> Thanks for the bug report. It has everything I need to investigate the bug.
>
> I confirmed this bug with your test program on gdb 5.2.1-4 with red hat linux 8.0, gcc 3.2-7-rh.
>
> This bug has been fixed in gdb 5.3 and gdb 6.0. You can download gdb 6.0 from ftp.gnu.org. I can help you download, configure, and install it if you need help.
>
> Here is what happens with gdb 6.0:
>
> (gdb) print F
> $1 = {static done = 0, junk = 1108517584}
> (gdb) print G
> $2 = {static done = 0, junk = 1107341000}
> (gdb) print &F.done
> $3 = (int *) 0x8049474
> (gdb) print &G.done
> $4 = (int *) 0x80495d0
>
> I checked the addresses with nm:
>
> % nm foo | grep done | c++filt
> 080495d0 B SpList_works::done
> 08049474 D SpList::done
>
> So gdb 6.0 found the right addresses and printed the right result.
>
> I am changing this PR to 'feedback'. If you let me know that gdb 6.0 works for you, then I can close it.
>
> Michael C
> GDB QA Guy
>
> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1461
>
>