Implicit switch fallthrough refactor

This commit is contained in:
Jack Andersen 2019-02-17 19:45:51 -10:00
parent 01e291833b
commit 3da29add5f
1 changed files with 5 additions and 0 deletions

View File

@ -247,14 +247,19 @@ static void AbortHandler(int signum) {
switch (signum) {
case SIGSEGV:
Log.report(logvisor::Fatal, "Segmentation Fault");
break;
case SIGILL:
Log.report(logvisor::Fatal, "Bad Execution");
break;
case SIGFPE:
Log.report(logvisor::Fatal, "Floating Point Exception");
break;
case SIGABRT:
Log.report(logvisor::Fatal, "Abort Signal");
break;
default:
Log.report(logvisor::Fatal, "unknown signal %d", signum);
break;
}
}