From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5510 invoked by alias); 9 Jan 2014 11:23:42 -0000 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 Received: (qmail 5478 invoked by uid 48); 9 Jan 2014 11:23:40 -0000 From: "branko.drevensek at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/16420] New: Gdb cannot print static variables when code is compiled but not linked with -flto Date: Thu, 09 Jan 2014 11:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: branko.drevensek at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00016.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16420 Bug ID: 16420 Summary: Gdb cannot print static variables when code is compiled but not linked with -flto Product: gdb Version: 7.6 Status: NEW Severity: minor Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: branko.drevensek at gmail dot com Code: --- int main() { static int x = 4; return x; } --- Compiled with -O0 -g3 -flto. Linked *without* -flto. In gdb within main: info locals x.1586 = 4 print x No symbol "x" in current context. print x.1586 No symbol "x" in current context. -- You are receiving this mail because: You are on the CC list for the bug.