Prechádzať zdrojové kódy

Generate mimnimal DWARF debug information for non-multithreaded thread variables

git-svn-id: trunk@29150 -
pierre 10 rokov pred
rodič
commit
3506767e8d
1 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 6 1
      compiler/dbgdwarf.pas

+ 6 - 1
compiler/dbgdwarf.pas

@@ -2404,7 +2404,12 @@ implementation
                     if (vo_is_thread_var in sym.varoptions) then
                     if (vo_is_thread_var in sym.varoptions) then
                       begin
                       begin
 { TODO: !!! FIXME: dwarf for thread vars !!!}
 { TODO: !!! FIXME: dwarf for thread vars !!!}
-                        blocksize:=0;
+{ 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,
+                          offset+sizeof(pint)));
+                        blocksize:=1+sizeof(puint);
                       end
                       end
                     else
                     else
                       begin
                       begin