mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:09:23 +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;
|
||||
var
|
||||
i : longint;
|
||||
{$ifdef DEBUG}
|
||||
pt : PInitFinalTable;
|
||||
{$endif}
|
||||
begin
|
||||
{ call cpu/fpu initialisation routine }
|
||||
fpc_cpuinit;
|
||||
{$ifdef FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
||||
{$ifdef DEBUG}
|
||||
pt := PInitFinalTable(EntryInformation.InitFinalTable);
|
||||
{$endif}
|
||||
with PInitFinalTable(EntryInformation.InitFinalTable)^ do
|
||||
{$else FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
||||
{$ifdef DEBUG}
|
||||
pt := @InitFinalTable;
|
||||
{$endif}
|
||||
with InitFinalTable do
|
||||
{$endif FPC_HAS_INDIRECT_MAIN_INFORMATION}
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user