improve output
This commit is contained in:
@@ -339,6 +339,7 @@ static void RunCrashHandler( const CrashData *crash )
|
|||||||
/* Stop other threads. XXX: This prints a spurious ptrace error if any threads
|
/* Stop other threads. XXX: This prints a spurious ptrace error if any threads
|
||||||
* are already suspended, which happens in ForceCrashHandlerDeadlock(). */
|
* are already suspended, which happens in ForceCrashHandlerDeadlock(). */
|
||||||
RageThread::HaltAllThreads();
|
RageThread::HaltAllThreads();
|
||||||
|
fprintf(stderr, "crash\n");
|
||||||
|
|
||||||
/* We need to be very careful, since we're under crash conditions. Let's fork
|
/* We need to be very careful, since we're under crash conditions. Let's fork
|
||||||
* a process and exec ourself to get a clean environment to work in. */
|
* a process and exec ourself to get a clean environment to work in. */
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ static void child_process()
|
|||||||
case SIGFPE:
|
case SIGFPE:
|
||||||
case SIGSEGV:
|
case SIGSEGV:
|
||||||
case SIGBUS:
|
case SIGBUS:
|
||||||
|
if( crash.si.si_code == SI_USER )
|
||||||
|
reason += ssprintf( " from pid %i", (int) crash.si.si_addr );
|
||||||
|
else
|
||||||
reason += ssprintf( " at 0x%08x", (unsigned int) crash.si.si_addr );
|
reason += ssprintf( " at 0x%08x", (unsigned int) crash.si.si_addr );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user