- disabled DWARF (a)ranges for Darwin, it's not supported/used there

git-svn-id: trunk@33479 -
This commit is contained in:
Jonas Maebe 2016-04-10 21:16:55 +00:00
parent 71b7cd7e1d
commit 953c47dd97

View File

@ -2232,11 +2232,14 @@ implementation
append_labelentry(DW_AT_low_pc,current_asmdata.RefAsmSymbol(procentry)); append_labelentry(DW_AT_low_pc,current_asmdata.RefAsmSymbol(procentry));
append_labelentry(DW_AT_high_pc,procendlabel); append_labelentry(DW_AT_high_pc,procendlabel);
if not(target_info.system in systems_darwin) then
begin
current_asmdata.asmlists[al_dwarf_aranges].Concat( current_asmdata.asmlists[al_dwarf_aranges].Concat(
tai_const.create_type_sym(aitconst_ptr_unaligned,current_asmdata.RefAsmSymbol(procentry))); tai_const.create_type_sym(aitconst_ptr_unaligned,current_asmdata.RefAsmSymbol(procentry)));
current_asmdata.asmlists[al_dwarf_aranges].Concat( current_asmdata.asmlists[al_dwarf_aranges].Concat(
tai_const.Create_rel_sym(aitconst_ptr_unaligned,current_asmdata.RefAsmSymbol(procentry),procendlabel)); tai_const.Create_rel_sym(aitconst_ptr_unaligned,current_asmdata.RefAsmSymbol(procentry),procendlabel));
end; end;
end;
{ Don't write the funcretsym explicitly, it's also in the { Don't write the funcretsym explicitly, it's also in the
localsymtable and/or parasymtable. localsymtable and/or parasymtable.
@ -3197,6 +3200,8 @@ implementation
{ start abbrev section } { start abbrev section }
new_section(current_asmdata.asmlists[al_dwarf_abbrev],sec_debug_abbrev,'',0); new_section(current_asmdata.asmlists[al_dwarf_abbrev],sec_debug_abbrev,'',0);
if not(target_info.system in systems_darwin) then
begin
{ start aranges section } { start aranges section }
new_section(current_asmdata.asmlists[al_dwarf_aranges],sec_debug_aranges,'',0); new_section(current_asmdata.asmlists[al_dwarf_aranges],sec_debug_aranges,'',0);
@ -3226,6 +3231,7 @@ implementation
{ start ranges section } { start ranges section }
new_section(current_asmdata.asmlists[al_dwarf_ranges],sec_debug_ranges,'',0); new_section(current_asmdata.asmlists[al_dwarf_ranges],sec_debug_ranges,'',0);
end;
{ debug info header } { debug info header }
current_asmdata.getlabel(lenstartlabel,alt_dbgfile); current_asmdata.getlabel(lenstartlabel,alt_dbgfile);
@ -3321,10 +3327,13 @@ implementation
{ end of abbrev table } { end of abbrev table }
current_asmdata.asmlists[al_dwarf_abbrev].concat(tai_const.create_8bit(0)); current_asmdata.asmlists[al_dwarf_abbrev].concat(tai_const.create_8bit(0));
if not(target_info.system in systems_darwin) then
begin
{ end of aranges table } { end of aranges table }
current_asmdata.asmlists[al_dwarf_aranges].concat(tai_const.Create_aint(0)); current_asmdata.asmlists[al_dwarf_aranges].concat(tai_const.Create_aint(0));
current_asmdata.asmlists[al_dwarf_aranges].concat(tai_const.Create_aint(0)); current_asmdata.asmlists[al_dwarf_aranges].concat(tai_const.Create_aint(0));
current_asmdata.asmlists[al_dwarf_aranges].concat(tai_symbol.createname(target_asm.labelprefix+'earanges0',AT_DATA,0)); current_asmdata.asmlists[al_dwarf_aranges].concat(tai_symbol.createname(target_asm.labelprefix+'earanges0',AT_DATA,0));
end;
{ reset all def debug states } { reset all def debug states }
for i:=0 to defnumberlist.count-1 do for i:=0 to defnumberlist.count-1 do