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: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 21 Apr 2016 21:22:50 +0000
- Subject: [Bug c++/15231] Local variables in lambdas are not accessible
- Auto-submitted: auto-generated
- References: <bug-15231-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15231
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat dot com
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
I agree the bug is due to missing PC bounds but I find the difference
elsewhere.
PASS: gcc-6.0.0-0.20.fc24.x86_64
FAIL: gcc-5.3.1-6.fc23.x86_64
Tested with gdb-7.10.1-31.fc23.x86_64 and even more recent GDBs.
GDB: read_lexical_block_scope
/* Ignore blocks with missing or invalid low and high pc attributes. */
[...]
if (!dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu, NULL))
return;
PASS: gcc-6.0.0-0.20.fc24.x86_64 0x1c3->0x91->0xb7
<c> DW_AT_producer : (indirect string, offset: 0xa): GNU C++11 6.0.0
20160406 (Red Hat 6.0.0-0.20) -mtune=generic -march=x86-64 -g -std=c++11
[...]
<1><91>: Abbrev Number: 11 (DW_TAG_subprogram)
<92> DW_AT_specification: <0x3d>
[...]
[...]
<2><b7>: Abbrev Number: 15 (DW_TAG_structure_type)
<b8> DW_AT_name : (indirect string, offset: 0x79): <lambda()>
[...]
[...]
<1><1c3>: Abbrev Number: 25 (DW_TAG_subprogram)
<1c4> DW_AT_abstract_origin: <0x91>
<1c8> DW_AT_linkage_name: (indirect string, offset: 0xbc): _ZN1ZC2Ev
[...]
FAIL: gcc-5.3.1-6.fc23.x86_64 0x1aa->0x7b->0x92
<c> DW_AT_producer : (indirect string, offset: 0x9f): GNU C++11 5.3.1
20160406 (Red Hat 5.3.1-6) -mtune=generic -march=x86-64 -g
[...]
<1><7b>: Abbrev Number: 9 (DW_TAG_subprogram)
<7c> DW_AT_specification: <0x3d>
[...]
<2><92>: Abbrev Number: 11 (DW_TAG_lexical_block)
[...]
<3><9c>: Abbrev Number: 13 (DW_TAG_structure_type)
<9d> DW_AT_name : (indirect string, offset: 0x3c): <lambda()>
[...]
[...]
<1><1aa>: Abbrev Number: 25 (DW_TAG_subprogram)
<1ab> DW_AT_abstract_origin: <0x7b>
<1af> DW_AT_linkage_name: (indirect string, offset: 0x77): _ZN1ZC2Ev
[...]
Keeping the Bug for GDB open as it could be compatible with older GCCs.
--
You are receiving this mail because:
You are on the CC list for the bug.