This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/222: GDB scope does not work quite right for Pascal
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/222: GDB scope does not work quite right for Pascal
- From: adam dot oldham at marconi dot com
- Date: 12 Oct 2001 12:44:03 -0000
- Reply-To: adam dot oldham at marconi dot com
>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: