aboutsummaryrefslogtreecommitdiff
path: root/tools/debugserver/scripts/diagnose-termination.d
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
commit9e6d35490a6542f9c97607f93c2ef8ca8e03cbcc (patch)
treedd2a1ddf0476664c2b823409c36cbccd52662ca7 /tools/debugserver/scripts/diagnose-termination.d
parent3bd2e91faeb9eeec1aae82c64a3253afff551cfd (diff)
Notes
Diffstat (limited to 'tools/debugserver/scripts/diagnose-termination.d')
-rw-r--r--tools/debugserver/scripts/diagnose-termination.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/debugserver/scripts/diagnose-termination.d b/tools/debugserver/scripts/diagnose-termination.d
new file mode 100644
index 000000000000..d216c9750033
--- /dev/null
+++ b/tools/debugserver/scripts/diagnose-termination.d
@@ -0,0 +1,18 @@
+fbt::exception_deliver:entry
+{
+ printf("pid %d got an exception of type %d\n", pid, arg1);
+ stack();
+ ustack();
+}
+
+syscall::kill:entry
+{
+ printf("pid %d called kill(%d, %d)\n", pid, arg0, arg1);
+ ustack();
+}
+
+syscall::__pthread_kill:entry
+{
+ printf("pid %d called pthread_kill(%p, %d)\n", pid, arg0, arg1);
+ ustack();
+}