This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/17632] New: No locals for lambdas in initialiser lists
- From: "khaurbeille+sourceware at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 21 Nov 2014 17:04:01 +0000
- Subject: [Bug c++/17632] New: No locals for lambdas in initialiser lists
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17632
Bug ID: 17632
Summary: No locals for lambdas in initialiser lists
Product: gdb
Version: 7.6
Status: NEW
Severity: minor
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: khaurbeille+sourceware at gmail dot com
Created attachment 7961
--> https://sourceware.org/bugzilla/attachment.cgi?id=7961&action=edit
Example code
GDB is not able to display local variables for lambda functions that are used
in an initialiser list. Lambda functions in regular code work fine.
Steps to reproduce:
Compile attached file (GCC 4.8.3) with c++11 and debug info enabled
Run gdb on the executable
Run the following commands:
break 10
break 22
run
info locals
c
info locals
Actual results:
1st info locals:
std::__ioinit = {static _S_refcount = <optimized out>, static
_S_synced_with_stdio = <optimized out>}
2nd info locals:
b = 4
c = @0x7fffffffddac: 4
Expected results:
Similar outputs for the 2 info locals
Stepping works as expected inside both lambdas.
--
You are receiving this mail because:
You are on the CC list for the bug.