* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
@ 2010-10-11 22:10 ` tromey at redhat dot com
2010-10-11 22:13 ` tromey at redhat dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: tromey at redhat dot com @ 2010-10-11 22:10 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |safinaskar at mail dot ru
--- Comment #5 from Tom Tromey <tromey at redhat dot com> 2010-10-11 22:09:20 UTC ---
*** Bug 12106 has been marked as a duplicate of this bug. ***
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
2010-10-11 22:10 ` [Bug c++/11836] gdb cannot access variables that are subject to return value optimization tromey at redhat dot com
@ 2010-10-11 22:13 ` tromey at redhat dot com
2010-10-11 22:14 ` tromey at redhat dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: tromey at redhat dot com @ 2010-10-11 22:13 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rdengler at arcor dot de
--- Comment #6 from Tom Tromey <tromey at redhat dot com> 2010-10-11 22:13:08 UTC ---
*** Bug 9640 has been marked as a duplicate of this bug. ***
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
2010-10-11 22:10 ` [Bug c++/11836] gdb cannot access variables that are subject to return value optimization tromey at redhat dot com
2010-10-11 22:13 ` tromey at redhat dot com
@ 2010-10-11 22:14 ` tromey at redhat dot com
2010-10-12 16:21 ` safinaskar at mail dot ru
` (5 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: tromey at redhat dot com @ 2010-10-11 22:14 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cmayer at xp8 dot de
--- Comment #7 from Tom Tromey <tromey at redhat dot com> 2010-10-11 22:13:52 UTC ---
*** Bug 9607 has been marked as a duplicate of this bug. ***
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
` (2 preceding siblings ...)
2010-10-11 22:14 ` tromey at redhat dot com
@ 2010-10-12 16:21 ` safinaskar at mail dot ru
2011-02-14 12:34 ` jan.kratochvil at redhat dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: safinaskar at mail dot ru @ 2010-10-12 16:21 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
Askar Safin <safinaskar at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|safinaskar at mail dot ru |
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
` (3 preceding siblings ...)
2010-10-12 16:21 ` safinaskar at mail dot ru
@ 2011-02-14 12:34 ` jan.kratochvil at redhat dot com
2011-02-17 17:15 ` rdengler at arcor dot de
` (3 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-02-14 12:34 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |jan.kratochvil at redhat
| |dot com
--- Comment #8 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-02-14 12:34:01 UTC ---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44367
Breakpoint 1, foo () at rvo.C:8
8 return s;
$1 = "helloworld"
Breakpoint 2, bar () at rvo.C:16
16 return "something else";
$2 = "helloworld"
with /r:
Breakpoint 1, foo () at rvo.C:8
8 return s;
$1 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x601058 "helloworld"}}
Breakpoint 2, bar () at rvo.C:16
16 return "something else";
$2 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x601028 "helloworld"}}
This should be a GCC-only bug which is already fixed:
FAIL g++ (GCC) 4.4.6 20110124 (prerelease)
PASS g++ (GCC) 4.5.3 20110124 (prerelease)
PASS g++ (GCC) 4.6.0 20110212 (experimental)
PASS gcc-c++-4.6.0-0.6.fc15.x86_64
Behaves the same with both:
GNU gdb (GDB) 7.2.50.20110213-cvs
gdb-7.2.50.20110206-18.fc15.x86_64
Is the bug still reproducible with recent GCC?
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
` (4 preceding siblings ...)
2011-02-14 12:34 ` jan.kratochvil at redhat dot com
@ 2011-02-17 17:15 ` rdengler at arcor dot de
2011-02-17 17:29 ` jan.kratochvil at redhat dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: rdengler at arcor dot de @ 2011-02-17 17:15 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
--- Comment #9 from rdengler at arcor dot de 2011-02-17 17:14:59 UTC ---
Hi Jan,
thanks for the information.
Sorry I couldn't test it yet, there only is g++ 4.4.3
on my system.
I suppose the confusing behaviour will have gone,
the test code is simple enough.
Regards
Richard
jan.kratochvil at redhat dot com schrieb:
>http://sourceware.org/bugzilla/show_bug.cgi?id=11836
>
>Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
>
> What |Removed |Added
>----------------------------------------------------------------------------
> Status|NEW |WAITING
> CC| |jan.kratochvil at redhat
> | |dot com
>
>--- Comment #8 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-02-14 12:34:01 UTC ---
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44367
>
>Breakpoint 1, foo () at rvo.C:8
>8 return s;
>$1 = "helloworld"
>
>Breakpoint 2, bar () at rvo.C:16
>16 return "something else";
>$2 = "helloworld"
>
>with /r:
>
>Breakpoint 1, foo () at rvo.C:8
>8 return s;
>$1 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
>= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
> _M_p = 0x601058 "helloworld"}}
>
>Breakpoint 2, bar () at rvo.C:16
>16 return "something else";
>$2 = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>>
>= {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
> _M_p = 0x601028 "helloworld"}}
>
>This should be a GCC-only bug which is already fixed:
>FAIL g++ (GCC) 4.4.6 20110124 (prerelease)
>PASS g++ (GCC) 4.5.3 20110124 (prerelease)
>PASS g++ (GCC) 4.6.0 20110212 (experimental)
>PASS gcc-c++-4.6.0-0.6.fc15.x86_64
>
>Behaves the same with both:
>GNU gdb (GDB) 7.2.50.20110213-cvs
>gdb-7.2.50.20110206-18.fc15.x86_64
>
>Is the bug still reproducible with recent GCC?
>
>
>
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
` (5 preceding siblings ...)
2011-02-17 17:15 ` rdengler at arcor dot de
@ 2011-02-17 17:29 ` jan.kratochvil at redhat dot com
2014-02-16 18:24 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
8 siblings, 0 replies; 13+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-02-17 17:29 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11836
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
--- Comment #10 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-02-17 17:28:43 UTC ---
So let's say it has never been a GDB bug.
--
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] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
` (6 preceding siblings ...)
2011-02-17 17:29 ` jan.kratochvil at redhat dot com
@ 2014-02-16 18:24 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
8 siblings, 0 replies; 13+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 18:24 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=11836
Jackie Rosen <jackie.rosen at hushmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jackie.rosen at hushmail dot com
--- Comment #11 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
[not found] <bug-11836-4717@http.sourceware.org/bugzilla/>
` (7 preceding siblings ...)
2014-02-16 18:24 ` jackie.rosen at hushmail dot com
@ 2014-05-28 19:43 ` schwab at sourceware dot org
8 siblings, 0 replies; 13+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:43 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=11836
Andreas Schwab <schwab at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|jackie.rosen at hushmail dot com |
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread