This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/16420] New: Gdb cannot print static variables when code is compiled but not linked with -flto
- From: "branko.drevensek at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 09 Jan 2014 11:23:39 +0000
- Subject: [Bug gdb/16420] New: Gdb cannot print static variables when code is compiled but not linked with -flto
- Auto-submitted: auto-generated
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.