Explorar o código

* fixed dwarf debug info after r40398 (mantis #34622)

git-svn-id: trunk@40421 -
Jonas Maebe %!s(int64=6) %!d(string=hai) anos
pai
achega
758a8dd34a
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      compiler/dbgdwarf.pas

+ 6 - 2
compiler/dbgdwarf.pas

@@ -1489,8 +1489,12 @@ implementation
         sign         : tdwarf_type;
         signform     : tdwarf_form;
         fullbytesize : byte;
+        ordtype      : tordtype;
       begin
-        case def.ordtype of
+        ordtype:=def.ordtype;
+        if ordtype=customint then
+          ordtype:=range_to_basetype(def.low,def.high);
+        case ordtype of
           s8bit,
           s16bit,
           s32bit,
@@ -1524,7 +1528,7 @@ implementation
                     basedef:=s16inttype
                   else
                     basedef:=u16inttype;
-                4:
+                3,4:
                   if (sign=DW_ATE_signed) then
                     basedef:=s32inttype
                   else