* fixed the stack traces under linux (StackTop wasn't initialized)

git-svn-id: trunk@25861 -
This commit is contained in:
nickysn 2013-10-27 12:37:32 +00:00
parent f23794bf39
commit 714ca3a61d

View File

@ -351,8 +351,9 @@ begin
{$endif} {$endif}
{$endif} {$endif}
IsConsole := TRUE; IsConsole := TRUE;
StackTop := initialstkptr;
StackLength := CheckInitialStkLen(initialStkLen); StackLength := CheckInitialStkLen(initialStkLen);
StackBottom := initialstkptr - StackLength; StackBottom := StackTop - StackLength;
{ Set up signals handlers (may be needed by init code to test cpu features) } { Set up signals handlers (may be needed by init code to test cpu features) }
InstallSignals; InstallSignals;
{$if defined(cpui386) or defined(cpuarm)} {$if defined(cpui386) or defined(cpuarm)}