public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17632] New: No locals for lambdas in initialiser lists
@ 2014-11-21 17:04 khaurbeille+sourceware at gmail dot com
  2023-12-29 16:59 ` [Bug c++/17632] " ssbssa at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: khaurbeille+sourceware at gmail dot com @ 2014-11-21 17:04 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-29 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-21 17:04 [Bug c++/17632] New: No locals for lambdas in initialiser lists khaurbeille+sourceware at gmail dot com
2023-12-29 16:59 ` [Bug c++/17632] " ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).