Dump full siginfo for unexpected signal
diff --git a/src/AutoRemoteSyscalls.cc b/src/AutoRemoteSyscalls.cc
index deca5e5..0d1bae0 100644
--- a/src/AutoRemoteSyscalls.cc
+++ b/src/AutoRemoteSyscalls.cc
@@ -323,7 +323,12 @@
}
return true;
}
- ASSERT(t, false) << "Unexpected signal " << signal_name(sig);
+ siginfo_t siginfo;
+ if (t->ptrace_if_alive(PTRACE_GETSIGINFO, nullptr, &siginfo)) {
+ ASSERT(t, false) << "Unexpected signal " << siginfo;
+ } else {
+ ASSERT(t, false) << "Unexpected signal " << signal_name(sig);
+ }
return false;
}