[fpc-devel] dvarf 3 implementation issue

Jonas Maebe jonas.maebe at elis.ugent.be
Thu May 8 13:32:25 CEST 2014


On 06 May 2014, at 01:29, Martin Frb wrote:

> When FPC generates dwarf 3, it does use DW_AT_data_location for  
> dynamic array.
>
> That leads to gdb  reporting "a=b" to be false, after the below  
> code. (with dwarf 2 gdb compares the pointer, and returns true)
>
> var  a,b: array of Integer;
> SetLength(a,3);
> b:=a;
>
> With that gdb does no longer know there is a hidden pointer.
>
> All GDB sees, is that a is at addr x, and b at addr y.
> It does not have a data  size, or type for what is at that address.
>
> How to use that address is now hidden in the location expression in  
> DW_AT_data_location.

Maybe @a and @b?


Jonas



More information about the fpc-devel mailing list