浏览代码

* 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 年之前
父节点
当前提交
1f2578077c
共有 1 个文件被更改,包括 2 次插入2 次删除
  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