Explorar o código

haiku: pass SA_SIGINFO flag to the signal handler. This seems correct ucontext IP and BP register contents, for valid stacktraces on signals

git-svn-id: trunk@40844 -
Károly Balogh %!s(int64=6) %!d(string=hai) anos
pai
achega
7947f1d7a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/haiku/system.pp

+ 1 - 1
rtl/haiku/system.pp

@@ -231,7 +231,7 @@ begin
   { initialize handler                    }
   act.sa_mask[0] := 0;
   act.sa_handler := SigActionHandler(@SignalToRunError);
-  act.sa_flags := SA_ONSTACK;
+  act.sa_flags := SA_ONSTACK or SA_SIGINFO;
   FpSigAction(signum,@act,@oldact);
 end;