From f54089a5e20ce48b0c51c1d3e3b27f7f064f95f0 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Mon, 16 Mar 2009 21:14:54 +0000 Subject: [PATCH] * 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 - --- compiler/dbgdwarf.pas | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/compiler/dbgdwarf.pas b/compiler/dbgdwarf.pas index bd80993010..12e2c88808 100644 --- a/compiler/dbgdwarf.pas +++ b/compiler/dbgdwarf.pas @@ -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,