mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 08:09:26 +02:00
LCL: avoid stabs based BackTraceFunction on wince, until issue #14330 has been fixed, fixes for issue #15075
git-svn-id: trunk@22786 -
This commit is contained in:
parent
543add952b
commit
a94da35a04
@ -1505,11 +1505,6 @@ begin
|
||||
end;
|
||||
|
||||
procedure DumpExceptionBackTrace;
|
||||
// Remove ifdef when bug 14330 is fixed
|
||||
{$ifdef WinCE}
|
||||
begin
|
||||
end;
|
||||
{$else}
|
||||
var
|
||||
FrameCount: integer;
|
||||
Frames: PPointer;
|
||||
@ -1522,7 +1517,6 @@ begin
|
||||
for FrameNumber := 0 to FrameCount-1 do
|
||||
DebugLn(BackTraceStrFunc(Frames[FrameNumber]));
|
||||
end;
|
||||
{$endif}
|
||||
|
||||
procedure DumpStack;
|
||||
begin
|
||||
@ -4473,6 +4467,13 @@ end;
|
||||
|
||||
initialization
|
||||
InitializeDebugOutput;
|
||||
{$ifdef WinCE}
|
||||
// The stabs based back trace function crashes on wince,
|
||||
// see http://bugs.freepascal.org/view.php?id=14330
|
||||
// To prevent crashes, replace it with the default system back trace function
|
||||
// that just outputs addresses and not source and line number
|
||||
BackTraceStrFunc := @SysBackTraceStr;
|
||||
{$endif}
|
||||
InterfaceInitializationHandlers := TFPList.Create;
|
||||
InterfaceFinalizationHandlers := TFPList.Create;
|
||||
{$IFDEF DebugLCLComponents}
|
||||
|
Loading…
Reference in New Issue
Block a user