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: chastain at sourceware dot org
- To: chastain at sourceware dot org, gdb-prs at sources dot redhat dot com, nobody at sources dot redhat dot com, ron at vaniwaarden dot org
- Date: 2 Dec 2003 17:32:40 -0000
- Subject: Re: c++/1461: static member variables sometimes not viewable
- Reply-to: chastain at sourceware dot org, chastain at sourceware dot org, gdb-prs at sources dot redhat dot com, nobody at sources dot redhat dot com, ron at vaniwaarden dot org, gdb-gnats at sources dot redhat dot com
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