This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/78: GDB does not print Pascal Strings correctly
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/78: GDB does not print Pascal Strings correctly
- From: adam dot oldham at marconi dot com
- Date: 5 Jul 2001 14:58:32 -0000
- Reply-To: adam dot oldham at marconi dot com
>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: