Browse Source

* small correction to previous commit: the offset of DW_OP_bregx is signed
(since it's a hardcoded 0, that doesn't matter here in practice though)

git-svn-id: trunk@22177 -

Jonas Maebe 13 years ago
parent
commit
1f2578077c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/dbgdwarf.pas

+ 2 - 2
compiler/dbgdwarf.pas

@@ -2336,8 +2336,8 @@ implementation
                 begin
                   templist.concat(tai_const.create_8bit(ord(DW_OP_bregx)));
                   templist.concat(tai_const.create_uleb128bit(dreg));
-                  templist.concat(tai_const.create_uleb128bit(0));
-                  blocksize:=1+Lengthuleb128(dreg)+Lengthuleb128(0);
+                  templist.concat(tai_const.create_sleb128bit(0));
+                  blocksize:=1+Lengthuleb128(dreg)+LengthSleb128(0);
                 end
               else
                 begin