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/78: GDB does not print Pascal Strings correctly



>Number:         78
>Category:       gdb
>Synopsis:       GDB does not print Pascal Strings correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 05 08:08:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Adam Oldham
>Release:        gdb-20010705
>Organization:
>Environment:
linux kernel 2.2.17, gcc 2.95.2, gpc 20010502
>Description:
When debugging any pascal source that uses the String construct, gdb will display this (for example):

For
PasVolName : String[5]; { as the code to declare this }

{gdb) print Pasvolname
$1 = {Capacity = 5, length = 4, _p_schema = B'111011'}

As you see, this will print the String as a bitstring instead as a string of characters.
>How-To-Repeat:
Repeat with any Pascal string.
>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]