public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "rdengler at arcor dot de" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/11836] gdb cannot access variables that are subject to return value optimization
Date: Thu, 17 Feb 2011 17:15:00 -0000	[thread overview]
Message-ID: <bug-11836-4717-AhBvy9sLbW@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-11836-4717@http.sourceware.org/bugzilla/>

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.


  parent reply	other threads:[~2011-02-17 17:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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
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
2011-02-17 17:15 ` rdengler at arcor dot de [this message]
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
2010-07-23 10:47 [Bug c++/11836] New: " andre dot poenitz at nokia dot com
2010-07-23 10:48 ` [Bug c++/11836] " andre dot poenitz at nokia dot com
2010-07-23 14:54 ` swagiaal at redhat dot com
2010-07-23 16:43 ` andre dot poenitz at nokia dot com
2010-07-23 16:46 ` tromey at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-11836-4717-AhBvy9sLbW@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).