This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |