diff --git a/compiler/dbgdwarf.pas b/compiler/dbgdwarf.pas index f03ed8d4cd..e7aebdbc5b 100644 --- a/compiler/dbgdwarf.pas +++ b/compiler/dbgdwarf.pas @@ -2664,6 +2664,7 @@ implementation i, size: aint; usedef: tdef; + b : byte; begin { These are default values of parameters. These should be encoded via DW_AT_default_value, not as a separate sym. Moreover, their @@ -2744,7 +2745,10 @@ implementation size:=sym.constdef.size; while (isource_info.endian) then + b:=reverse_byte(b); + current_asmdata.asmlists[al_dwarf_info].concat(tai_const.create_8bit(b)); inc(i); end; end;