mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-10 12:55:00 +00:00
Committed a simple dtrace script that tracks
process termination, which can be useful to track debugserver's delivery of signals. llvm-svn: 162104
This commit is contained in:
parent
dffbb3b330
commit
433c8a1f44
18
lldb/tools/debugserver/scripts/diagnose-termination.d
Normal file
18
lldb/tools/debugserver/scripts/diagnose-termination.d
Normal file
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user