mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 10:13:35 +02:00
* 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:
parent
bfd753b7c9
commit
f54089a5e2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user