mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 15:09:20 +02:00
Add Dwarf debug info generation by default for mips cpu
git-svn-id: trunk@22509 -
This commit is contained in:
parent
fcaff0489c
commit
37a7c1fc25
@ -286,6 +286,7 @@ unit cpubase;
|
|||||||
function findreg_by_number(r:Tregister):tregisterindex;
|
function findreg_by_number(r:Tregister):tregisterindex;
|
||||||
function std_regnum_search(const s:string):Tregister;
|
function std_regnum_search(const s:string):Tregister;
|
||||||
function std_regname(r:Tregister):string;
|
function std_regname(r:Tregister):string;
|
||||||
|
function dwarf_reg(r:tregister):shortint;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
@ -385,6 +386,12 @@ unit cpubase;
|
|||||||
result:=generic_regname(r);
|
result:=generic_regname(r);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function dwarf_reg(r:tregister):shortint;
|
||||||
|
begin
|
||||||
|
result:=regdwarf_table[findreg_by_number(r)];
|
||||||
|
if result=-1 then
|
||||||
|
internalerror(200603251);
|
||||||
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
end.
|
end.
|
||||||
|
@ -58,7 +58,7 @@ implementation
|
|||||||
**************************************}
|
**************************************}
|
||||||
|
|
||||||
{$define NoCFIDwarf}
|
{$define NoCFIDwarf}
|
||||||
{$define NoDbgDwarf}
|
{define NoDbgDwarf}
|
||||||
{ Try only stabs for a start }
|
{ Try only stabs for a start }
|
||||||
{$ifndef NoCFIDwarf}
|
{$ifndef NoCFIDwarf}
|
||||||
,cfidwarf
|
,cfidwarf
|
||||||
|
Loading…
Reference in New Issue
Block a user