[Lazarus] tooltip debugger shows incorrect data

Michael Van Canneyt michael at freepascal.org
Wed Oct 13 19:08:20 CEST 2010



On Wed, 13 Oct 2010, Vincent Snijders wrote:

> 2010/10/13 Felipe Monteiro de Carvalho <felipemonteiro.carvalho at gmail.com>:
>> Plus, the tooltips always work for me. Maybe because I very rarely use
>> the data type Char.
>
> I don't the problem is not the data type char, but that somewhere in
> the debugger tool chain (from lazarus tool-tips front end to the gdb
> backend using the fpc generated debug info) the assumption is used
> that pascal strings are indexed starting from 0 instead of 1.
>
> Probably that is just how gdb works by default.

GDB being C-biased, that is quite likely the cause. 
Means that the debugger interface must work around it.

Michael.




More information about the Lazarus mailing list