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/80: Pascal types not printed right



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


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