This is the mail archive of the gdb-prs@sourceware.org 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]
Other format: [Raw text]

[Bug pascal/11349] pchar/ansistring does not print correctly


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


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