This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/15231] Local variables in lambdas are not accessible
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 06 Mar 2013 02:42:56 +0000
- Subject: [Bug c++/15231] Local variables in lambdas are not accessible
- Auto-submitted: auto-generated
- References: <bug-15231-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15231
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-03-06 02:42:56 UTC ---
gdb ignores the outer function due to missing PC bounds:
<1><5a>: Abbrev Number: 8 (DW_TAG_subprogram)
<5b> DW_AT_specification: <0x3d>
<5f> DW_AT_inline : 2 (declared as inline but ignored)
<60> DW_AT_object_pointer: <0x68>
<64> DW_AT_sibling : <0x15c>
and
/* Ignore functions with missing or invalid low and high pc attributes. */
if (!dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu, NULL))
{
attr = dwarf2_attr (die, DW_AT_external, cu);
[...]
return;
So the lambda's locals are never processed.
--
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.