summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-09-20 23:08:52 +0000
committerGreg Clayton <gclayton@apple.com>2012-09-20 23:08:52 +0000
commitdcadc5cfb77b4f69835c013d2a1c854ce1a82efc (patch)
tree8ffa38e44d2133eee8de688a1c45063b29fcbe45
parentb8707faba3182138965cb57ee21a155e90a5a356 (diff)
downloadbcm5719-llvm-dcadc5cfb77b4f69835c013d2a1c854ce1a82efc.tar.gz
bcm5719-llvm-dcadc5cfb77b4f69835c013d2a1c854ce1a82efc.zip
Re-adding this previously removed file.
llvm-svn: 164331
-rw-r--r--lldb/tools/debugserver/scripts/diagnose-termination.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/scripts/diagnose-termination.d b/lldb/tools/debugserver/scripts/diagnose-termination.d
new file mode 100644
index 00000000000..d216c975003
--- /dev/null
+++ b/lldb/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();
+}
OpenPOWER on IntegriCloud