This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug pascal/11349] pchar/ansistring does not print correctly
- From: "sethdgrover at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 10 May 2010 02:32:31 -0000
- Subject: [Bug pascal/11349] pchar/ansistring does not print correctly
- References: <20100304144351.11349.sethdgrover@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From sethdgrover at gmail dot com 2010-05-10 02:32 -------
Thanks, that seems to have done the trick. With the test program from comment 1,
here's what I get with the patched version:
============================
(gdb) break DOIT
Breakpoint 1 at 0x80480a9: file project1.pas, line 5.
(gdb) r
Starting program: /home/tlacuache/tmp/project1
Breakpoint 1, DOIT (S=@0x8068240) at project1.pas:5
5 end;
(gdb) print S
$1 = (&PCHAR) @0x8068240: 0x806404c 'test'
============================
compared to what I used to get (with gdb 7.1 in the Ubuntu repositories):
============================
(gdb) break DOIT
Breakpoint 1 at 0x80480a9: file project1.pas, line 5.
(gdb) r
Starting program: /home/tlacuache/tmp/project1
Breakpoint 1, DOIT (S=@0x8068240) at project1.pas:5
5 end;
(gdb) print S
$1 = (&PCHAR) @0x8068240
============================
So the new behavior is correct.
Thanks again.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11349
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.