[Lldb-commits] [lldb] r162104 - /lldb/trunk/tools/debugserver/scripts/diagnose-termination.d
Sean Callanan
scallanan at apple.com
Fri Aug 17 09:30:13 PDT 2012
Author: spyffe
Date: Fri Aug 17 11:30:13 2012
New Revision: 162104
URL: http://llvm.org/viewvc/llvm-project?rev=162104&view=rev
Log:
Committed a simple dtrace script that tracks
process termination, which can be useful to track
debugserver's delivery of signals.
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=162104&view=auto
==============================================================================
--- lldb/trunk/tools/debugserver/scripts/diagnose-termination.d (added)
+++ lldb/trunk/tools/debugserver/scripts/diagnose-termination.d Fri Aug 17 11:30:13 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