gdb/80: Pascal types not printed right

adam.oldham@marconi.com adam.oldham@marconi.com
Thu Jul 5 12:18:00 GMT 2001


>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:



More information about the Gdb-prs mailing list