16 May 2010 23:54
Re: Patch for pascal-dynamic arrays
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
RSS Feed