public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12106] New: x.bar is 1, but "p x.bar" says x.bar is -147973464
@ 2010-10-09 22:35 safinaskar at mail dot ru
2010-10-09 22:37 ` [Bug c++/12106] " safinaskar at mail dot ru
2010-10-11 22:09 ` tromey at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: safinaskar at mail dot ru @ 2010-10-09 22:35 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12106
Summary: x.bar is 1, but "p x.bar" says x.bar is -147973464
Product: gdb
Version: archer
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: safinaskar@mail.ru
I created x.cpp:
class foo
{
public:
int bar;
~foo(){};
};
foo f()
{
foo x;
x.bar = 1;
x.bar = x.bar;
return x;
};
int main()
{
f();
};
Then I compiled this and start gdb:
# g++ -g x.cpp
# gdb a.out
GNU gdb (GDB) 7.2.50.20101009
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/Desktop/a.out...done.
(gdb) br x.cpp:11
Breakpoint 1 at 0x40058b: file x.cpp, line 11.
(gdb) r
Starting program: /root/Desktop/a.out
Breakpoint 1, f () at x.cpp:11
11 x.bar = 1;
(gdb) n
12 x.bar = x.bar;
(gdb) p x.bar
$1 = -147973464
I use Debian Squeeze GNU/Linux, linux kernel 2.6.32-5, amd64, gcc and g++
4:4.4.4-2 from my repository
This bug was when I used gdb 7.0.1-2+b1 from my repository and when I used gdb
7.2.50.20101009 from ftp://sourceware.org/pub/gdb/snapshots/, too.
I'm Russian. So please speak with me in Russian or simple English.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/12106] x.bar is 1, but "p x.bar" says x.bar is -147973464
2010-10-09 22:35 [Bug c++/12106] New: x.bar is 1, but "p x.bar" says x.bar is -147973464 safinaskar at mail dot ru
@ 2010-10-09 22:37 ` safinaskar at mail dot ru
2010-10-11 22:09 ` tromey at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: safinaskar at mail dot ru @ 2010-10-09 22:37 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12106
Askar Safin <safinaskar at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|archer |7.2
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/12106] x.bar is 1, but "p x.bar" says x.bar is -147973464
2010-10-09 22:35 [Bug c++/12106] New: x.bar is 1, but "p x.bar" says x.bar is -147973464 safinaskar at mail dot ru
2010-10-09 22:37 ` [Bug c++/12106] " safinaskar at mail dot ru
@ 2010-10-11 22:09 ` tromey at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2010-10-11 22:09 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12106
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |tromey at redhat dot com
Resolution| |DUPLICATE
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2010-10-11 22:09:20 UTC ---
This is a g++ bug. Closing as dup of the gdb tracker.
*** This bug has been marked as a duplicate of bug 11836 ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-11 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-09 22:35 [Bug c++/12106] New: x.bar is 1, but "p x.bar" says x.bar is -147973464 safinaskar at mail dot ru
2010-10-09 22:37 ` [Bug c++/12106] " safinaskar at mail dot ru
2010-10-11 22:09 ` tromey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).