public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14850] New: unable to print local variable if stop at function }
@ 2012-11-16  3:49 chihinko at yahoo dot com
  2012-11-16  3:51 ` [Bug c++/14850] unable to print local variable when stopped at function closing brace '}' chihinko at yahoo dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: chihinko at yahoo dot com @ 2012-11-16  3:49 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14850

             Bug #: 14850
           Summary: unable to print local variable if stop at function }
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: chihinko@yahoo.com
    Classification: Unclassified


g++ 4.5.3 and up
gdb 7.1

for following test cast

int
main() {
    int i;
    i = 10;
}

if I stop at  } of main and print i, gdb gave error:
tarting program: /home/chko/core/g++/g45/a.out

Breakpoint 1, main () at t.cc:4
4           i = 10;
(gdb) p i
$1 = 0
(gdb) n
5       }
(gdb) p i
No symbol "i" in current context.
(gdb)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-11-22  3:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-16  3:49 [Bug c++/14850] New: unable to print local variable if stop at function } chihinko at yahoo dot com
2012-11-16  3:51 ` [Bug c++/14850] unable to print local variable when stopped at function closing brace '}' chihinko at yahoo dot com
2012-11-19 16:56 ` tromey at redhat dot com
2012-11-19 22:47 ` chihinko at yahoo dot com
2012-11-20 21:00 ` tromey at redhat dot com
2012-11-21  3:18 ` asmwarrior at gmail dot com
2012-11-22  3:57 ` chihinko at yahoo dot com

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).