public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16420] New: Gdb cannot print static variables when code is compiled but not linked with -flto
@ 2014-01-09 11:23 branko.drevensek at gmail dot com
  2024-01-02 12:02 ` [Bug gdb/16420] " ssbssa at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: branko.drevensek at gmail dot com @ 2014-01-09 11:23 UTC (permalink / raw)
  To: gdb-prs

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.


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

end of thread, other threads:[~2024-03-15 13:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-09 11:23 [Bug gdb/16420] New: Gdb cannot print static variables when code is compiled but not linked with -flto branko.drevensek at gmail dot com
2024-01-02 12:02 ` [Bug gdb/16420] " ssbssa at sourceware dot org
2024-03-15  9:31 ` sam at gentoo dot org
2024-03-15 13:04 ` tromey 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).