From 62e35755eb09caa6cf4892150fb87a6347afef6e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 16 May 2014 16:59:54 -0700 Subject: [PATCH] debugger.cpp should know the names of the signals it catches. Change-Id: I37908b07739ad465652f143848c52bc1ef19e421 --- linker/debugger.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/linker/debugger.cpp b/linker/debugger.cpp index 521a59909..75929acfb 100644 --- a/linker/debugger.cpp +++ b/linker/debugger.cpp @@ -121,10 +121,6 @@ static void log_signal_summary(int signum, const siginfo_t* info) { const char* signal_name = "???"; bool has_address = false; switch (signum) { - case SIGILL: - signal_name = "SIGILL"; - has_address = true; - break; case SIGABRT: signal_name = "SIGABRT"; break; @@ -136,6 +132,13 @@ static void log_signal_summary(int signum, const siginfo_t* info) { signal_name = "SIGFPE"; has_address = true; break; + case SIGILL: + signal_name = "SIGILL"; + has_address = true; + break; + case SIGPIPE: + signal_name = "SIGPIPE"; + break; case SIGSEGV: signal_name = "SIGSEGV"; has_address = true; @@ -145,8 +148,8 @@ static void log_signal_summary(int signum, const siginfo_t* info) { signal_name = "SIGSTKFLT"; break; #endif - case SIGPIPE: - signal_name = "SIGPIPE"; + case SIGTRAP: + signal_name = "SIGTRAP"; break; }