Răsfoiți Sursa

* 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 -

Jonas Maebe 16 ani în urmă
părinte
comite
f54089a5e2
1 a modificat fișierele cu 1 adăugiri și 7 ștergeri
  1. 1 7
      compiler/dbgdwarf.pas

+ 1 - 7
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,