* encode the offset of absolute global variables in the symbol instead

of in the DWARF, as it's more efficient and avoids a gdb bug which
    occurs on some platforms (thanks to Jan Kratochvil for the tip,
    http://sourceware.org/ml/gdb/2009-03/msg00094.html )

git-svn-id: trunk@12905 -
This commit is contained in:
Jonas Maebe 2009-03-16 21:14:54 +00:00
parent bfd753b7c9
commit f54089a5e2

View File

@ -1871,14 +1871,8 @@ implementation
else
begin
templist.concat(tai_const.create_8bit(ord(DW_OP_addr)));
templist.concat(tai_const.createname(sym.mangledname,0));
templist.concat(tai_const.createname(sym.mangledname,offset));
blocksize:=1+sizeof(puint);
if (offset<>0) then
begin
templist.concat(tai_const.create_8bit(ord(DW_OP_plus_uconst)));
templist.concat(tai_const.create_uleb128bit(offset));
inc(blocksize,1+Lengthuleb128(offset));
end;
end;
end;
paravarsym,