mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 03:39:33 +02:00
Add PT convinience variable to ba able to debug InitFinalTable
git-svn-id: trunk@23558 -
This commit is contained in:
parent
8bfbee747a
commit
6e5be15087
@ -835,12 +835,21 @@ var
|
|||||||
procedure fpc_InitializeUnits;[public,alias:'FPC_INITIALIZEUNITS']; compilerproc;
|
procedure fpc_InitializeUnits;[public,alias:'FPC_INITIALIZEUNITS']; compilerproc;
|
||||||
var
|
var
|
||||||
i : longint;
|
i : longint;
|
||||||
|
{$ifdef DEBUG}
|
||||||
|
pt : PInitFinalTable;
|
||||||
|
{$endif}
|
||||||
begin
|
begin
|
||||||
{ call cpu/fpu initialisation routine }
|
{ call cpu/fpu initialisation routine }
|
||||||
fpc_cpuinit;
|
fpc_cpuinit;
|
||||||
{$ifdef FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
{$ifdef FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
||||||
|
{$ifdef DEBUG}
|
||||||
|
pt := PInitFinalTable(EntryInformation.InitFinalTable);
|
||||||
|
{$endif}
|
||||||
with PInitFinalTable(EntryInformation.InitFinalTable)^ do
|
with PInitFinalTable(EntryInformation.InitFinalTable)^ do
|
||||||
{$else FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
{$else FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
||||||
|
{$ifdef DEBUG}
|
||||||
|
pt := @InitFinalTable;
|
||||||
|
{$endif}
|
||||||
with InitFinalTable do
|
with InitFinalTable do
|
||||||
{$endif FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
{$endif FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user