Browse Source

* always generate unaligned pointer entries (so .4bytes instead of .long is generated) in dwarf debugging info

git-svn-id: trunk@33782 -
florian 9 years ago
parent
commit
9daa4bd48d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/dbgdwarf.pas

+ 3 - 3
compiler/dbgdwarf.pas

@@ -2461,14 +2461,14 @@ implementation
 { This is only a minimal change to at least be able to get a value
   in only one thread is present PM 2014-11-21, like for stabs format }
                         templist.concat(tai_const.create_8bit(ord(DW_OP_addr)));
-                        templist.concat(tai_const.Create_type_name(aitconst_ptr,sym.mangledname,
+                        templist.concat(tai_const.Create_type_name(aitconst_ptr_unaligned,sym.mangledname,
                           offset+sizeof(pint)));
                         blocksize:=1+sizeof(puint);
                       end
                     else
                       begin
                         templist.concat(tai_const.create_8bit(ord(DW_OP_addr)));
-                        templist.concat(tai_const.Create_type_name(aitconst_ptr,sym.mangledname,offset));
+                        templist.concat(tai_const.Create_type_name(aitconst_ptr_unaligned,sym.mangledname,offset));
                         blocksize:=1+sizeof(puint);
                       end;
                   end;
@@ -2929,7 +2929,7 @@ implementation
           toasm :
             begin
               templist.concat(tai_const.create_8bit(3));
-              templist.concat(tai_const.create_type_name(aitconst_ptr,sym.mangledname,0));
+              templist.concat(tai_const.create_type_name(aitconst_ptr_unaligned,sym.mangledname,0));
               blocksize:=1+sizeof(puint);
             end;
           tovar: