From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27259 invoked by alias); 27 Apr 2010 17:08:04 -0000 Received: (qmail 26833 invoked by uid 48); 27 Apr 2010 17:08:00 -0000 Date: Tue, 27 Apr 2010 17:08:00 -0000 From: "fuscated at gmail dot com" To: gdb-prs@sourceware.org Message-ID: <20100427170757.11547.fuscated@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug c++/11547] New: Better c++-0x lambda support X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00170.txt.bz2 Getting the value 'sum' inside the lambda function doesn't work. 1. Compile the attached source (g++ -std=c++0x) with gcc 4.5.0+ 2. Place a breakpoint on line 18 (first line of the lambda) 3. Run the debuggee 4. When the breakpoint is hit evaluate 'sum' with 'print sum' command: > print sum $1 = 32767 > print this->__sum $2 = (int &) @0x7fffffffddec: 0 -- Summary: Better c++-0x lambda support Product: gdb Version: 7.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at sourceware dot org ReportedBy: fuscated at gmail dot com CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11547 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.