Patch for pascal-dynamic arrays

Jonas Maebe jonas.maebe@elis.ugent.be
Sun May 16 21:55:00 GMT 2010


On 16 May 2010, at 23:49, Jonas Maebe wrote:

> (gdb) ptype s
> type = array [1..8] of Char
> (gdb) p s
> $18 = #0#0#0#0#0#0#0
> (gdb) set lang c
> (gdb) ptype s
> type = Char [8]
> (gdb) p s
> $19 = "\000\000\000\000\000\000\000"

Actually, it seems one element too few is printed here (at least in Pascal mode, where strings are not null-terminated): only 7 instead of 8 characters are shown in both Pascal and C mode.


Jonas


More information about the Archer mailing list