aboutsummaryrefslogtreecommitdiff
path: root/ipc/mach_port.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-04-02 00:13:56 +0200
committerJustus Winter <justus@gnupg.org>2017-08-05 17:08:36 +0200
commite8b45fe8b5c6801f60e2825d09a2bda22e80372a (patch)
tree3a2c1ebf8d9e5deb402f491776f9617ca4b6a4cc /ipc/mach_port.c
parentc9f2f450f92528f04ee00ead0a3fd79b475f2d2c (diff)
downloadgnumach-e8b45fe8b5c6801f60e2825d09a2bda22e80372a.tar.gz
gnumach-e8b45fe8b5c6801f60e2825d09a2bda22e80372a.tar.bz2
gnumach-e8b45fe8b5c6801f60e2825d09a2bda22e80372a.zip
ddb: debug traps and port references
* ddb/db_command.c (db_debug_all_traps_cmd): New declaration and function. (db_debug_port_references_cmd): Likewise. * doc/mach.texi: Describe new commands. * i386/i386/db_interface.h (db_debug_all_traps): New declaration. * i386/i386/trap.c (db_debug_all_traps): New function. * ipc/mach_port.c (db_debug_port_references): New function. * ipc/mach_port.h (db_debug_port_references): New declaration.
Diffstat (limited to 'ipc/mach_port.c')
-rw-r--r--ipc/mach_port.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index 5cc39984..b30dcd6c 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -1566,3 +1566,13 @@ mach_port_clear_protected_payload(
ip_unlock(port);
return KERN_SUCCESS;
}
+
+#if MACH_KDB
+
+void
+db_debug_port_references (boolean_t enable)
+{
+ mach_port_deallocate_debug = enable;
+}
+
+#endif /* MACH_KDB */