]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/exc_helpers.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / exc_helpers.h
index 2ac27c8adb5a05a69c7cf583a9ac9a6b430080e6..60237d5da68533798f0b14d2cf09d6d026ba855c 100644 (file)
  * Callback invoked by run_exception_handler() when a Mach exception is
  * received.
  *
- * @param type  exception type received from the kernel
- * @param codes exception codes received from the kernel
+ * @param task      the task causing the exception
+ * @param thread    the task causing the exception
+ * @param type      exception type received from the kernel
+ * @param codes     exception codes received from the kernel
  *
  * @return      how much the exception handler should advance the program
  *              counter, in bytes (in order to move past the code causing the
  *              exception)
  */
-typedef size_t (*exc_handler_callback_t)(exception_type_t type, mach_exception_data_t codes);
+typedef size_t (*exc_handler_callback_t)(mach_port_t task, mach_port_t thread,
+    exception_type_t type, mach_exception_data_t codes);
 
 mach_port_t
 create_exception_port(exception_mask_t exception_mask);