This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/80: Pascal types not printed right
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/80: Pascal types not printed right
- From: adam dot oldham at marconi dot com
- Date: 5 Jul 2001 19:17:22 -0000
- Reply-To: adam dot oldham at marconi dot com
>Number: 80
>Category: gdb
>Synopsis: Pascal types not printed right
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 05 12:18:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Adam Oldham
>Release: unknown-1.0
>Organization:
>Environment:
linux 2.2.17, gcc 2.95.2, gpc 20010502
>Description:
Sample Code:
TYPE
String80 = STRING[80];
VAR
TestStr : String80;
BEGIN
TestStr := 'Test String For Pascal';
END;
If you break after the assignment above, and issue (gdb) print Teststr, this is resulted:
$1 = (&String80 = record ) @$bdfff99c: <imcomplete type>
String80 is a String type not a record type, regardless of whether the memory address bdfff99c is right (which it is).
Repeatable.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: