This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/14850] New: unable to print local variable if stop atfunction }
- From: "chihinko at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 16 Nov 2012 03:49:13 +0000
- Subject: [Bug c++/14850] New: unable to print local variable if stop atfunction }
- Auto-submitted: auto-generated
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.