This is the mail archive of the archer@sourceware.org mailing list for the Archer 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]

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

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