This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14850] New: unable to print local variable if stop atfunction }


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]