[Lldb-commits] [lldb] r164331 - /lldb/trunk/tools/debugserver/scripts/diagnose-termination.d

Greg Clayton gclayton at apple.com
Thu Sep 20 16:08:52 PDT 2012


Author: gclayton
Date: Thu Sep 20 18:08:52 2012
New Revision: 164331

URL: http://llvm.org/viewvc/llvm-project?rev=164331&view=rev
Log:
Re-adding this previously removed file.


Added:
    lldb/trunk/tools/debugserver/scripts/diagnose-termination.d

Added: lldb/trunk/tools/debugserver/scripts/diagnose-termination.d
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/scripts/diagnose-termination.d?rev=164331&view=auto
==============================================================================
--- lldb/trunk/tools/debugserver/scripts/diagnose-termination.d (added)
+++ lldb/trunk/tools/debugserver/scripts/diagnose-termination.d Thu Sep 20 18:08:52 2012
@@ -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();
+}





More information about the lldb-commits mailing list