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]

[Bug c++/15231] Local variables in lambdas are not accessible


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]