This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/222: GDB scope does not work quite right for Pascal



>Number:         222
>Category:       gdb
>Synopsis:       GDB scope does not work quite right for Pascal
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 05:48:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Adam Oldham
>Release:        gdb 20010813
>Organization:
>Environment:
Mandrake 8.1, Kernel 2.4.8, glibc 2.2, Intel Platform
>Description:
Source is compiled with FPC (Free Pascal Compiler).  This can happen with any source of pascal.  When you declare nested functions, gdb's scope does not allow the viewing of the variables that are from the parent function that should be within the scope.
>How-To-Repeat:
The simple program attached will produce the problem.  When compiled and run, the correct output is displayed, but if you run GDB on it, and break on function test2 and print out int1 which is a global variable for the function test1, you receive:
"No symbol "INT1" in current context."
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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