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
|
||||
* are already suspended, which happens in ForceCrashHandlerDeadlock(). */
|
||||
RageThread::HaltAllThreads();
|
||||
fprintf(stderr, "crash\n");
|
||||
|
||||
/* 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. */
|
||||
|
||||
@@ -300,7 +300,10 @@ static void child_process()
|
||||
case SIGFPE:
|
||||
case SIGSEGV:
|
||||
case SIGBUS:
|
||||
reason += ssprintf( " at 0x%08x", (unsigned int) crash.si.si_addr );
|
||||
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 );
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user