public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/11547] New: Better c++-0x lambda support @ 2010-04-27 17:08 fuscated at gmail dot com 2010-04-27 17:09 ` [Bug c++/11547] " fuscated at gmail dot com 2010-04-27 19:11 ` tromey at redhat dot com 0 siblings, 2 replies; 4+ messages in thread From: fuscated at gmail dot com @ 2010-04-27 17:08 UTC (permalink / raw) To: gdb-prs Getting the value 'sum' inside the lambda function doesn't work. 1. Compile the attached source (g++ -std=c++0x) with gcc 4.5.0+ 2. Place a breakpoint on line 18 (first line of the lambda) 3. Run the debuggee 4. When the breakpoint is hit evaluate 'sum' with 'print sum' command: > print sum $1 = 32767 > print this->__sum $2 = (int &) @0x7fffffffddec: 0 -- Summary: Better c++-0x lambda support Product: gdb Version: 7.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at sourceware dot org ReportedBy: fuscated at gmail dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11547 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11547] Better c++-0x lambda support 2010-04-27 17:08 [Bug c++/11547] New: Better c++-0x lambda support fuscated at gmail dot com @ 2010-04-27 17:09 ` fuscated at gmail dot com 2010-04-27 19:11 ` tromey at redhat dot com 1 sibling, 0 replies; 4+ messages in thread From: fuscated at gmail dot com @ 2010-04-27 17:09 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From fuscated at gmail dot com 2010-04-27 17:09 ------- Created an attachment (id=4754) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4754&action=view) the source -- http://sourceware.org/bugzilla/show_bug.cgi?id=11547 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11547] Better c++-0x lambda support 2010-04-27 17:08 [Bug c++/11547] New: Better c++-0x lambda support fuscated at gmail dot com 2010-04-27 17:09 ` [Bug c++/11547] " fuscated at gmail dot com @ 2010-04-27 19:11 ` tromey at redhat dot com 1 sibling, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2010-04-27 19:11 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From tromey at redhat dot com 2010-04-27 19:11 ------- g++ is not emitting the necessary debuginfo for this to work. That gdb can still try to resolve "sum" seems to be a gdb bug (though I did not look into this part too closely, perhaps it is also some debuginfo problem). -- What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2010-04-27 19:11:49 date| | http://sourceware.org/bugzilla/show_bug.cgi?id=11547 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bug-11547-4717@http.sourceware.org/bugzilla/>]
* [Bug c++/11547] Better c++-0x lambda support [not found] <bug-11547-4717@http.sourceware.org/bugzilla/> @ 2011-11-04 17:14 ` tromey at redhat dot com 0 siblings, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2011-11-04 17:14 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=11547 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #3 from Tom Tromey <tromey at redhat dot com> 2011-11-04 17:13:41 UTC --- See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43912 This works for me with a newer gcc. I don't think there is a gdb bug here. -- 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] 4+ messages in thread
end of thread, other threads:[~2011-11-04 17:14 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-04-27 17:08 [Bug c++/11547] New: Better c++-0x lambda support fuscated at gmail dot com 2010-04-27 17:09 ` [Bug c++/11547] " fuscated at gmail dot com 2010-04-27 19:11 ` tromey at redhat dot com [not found] <bug-11547-4717@http.sourceware.org/bugzilla/> 2011-11-04 17:14 ` 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).