mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-05 09:27:40 +02:00
force dwarf-2 debug format if used assembler does not support stabs (as indicated by new af_no_stabs flag)
git-svn-id: trunk@38239 -
This commit is contained in:
parent
55289c13e4
commit
22c4c349a6
@ -3875,6 +3875,14 @@ begin
|
|||||||
option.paratargetdbg:=dbg_none;
|
option.paratargetdbg:=dbg_none;
|
||||||
exclude(init_settings.moduleswitches,cs_debuginfo);
|
exclude(init_settings.moduleswitches,cs_debuginfo);
|
||||||
end;
|
end;
|
||||||
|
{ Some assemblers, like clang, do not support
|
||||||
|
stabs debugging format, switch to dwardé in that case }
|
||||||
|
if (af_no_stabs in asminfos[option.paratargetasm]^.flags) and
|
||||||
|
(option.paratargetdbg=dbg_stabs) then
|
||||||
|
begin
|
||||||
|
option.paratargetdbg:=dbg_dwarf2;
|
||||||
|
end;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
{TOptionheck a second time as we might have changed assembler just above }
|
{TOptionheck a second time as we might have changed assembler just above }
|
||||||
option.checkoptionscompatibility;
|
option.checkoptionscompatibility;
|
||||||
|
Loading…
Reference in New Issue
Block a user