X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..4d15aeb193b2c68f1d38666c317f8d3734f5f083:/osfmk/kdp/kdp_internal.h?ds=inline diff --git a/osfmk/kdp/kdp_internal.h b/osfmk/kdp/kdp_internal.h index d619f6d22..8c0e39a80 100644 --- a/osfmk/kdp/kdp_internal.h +++ b/osfmk/kdp/kdp_internal.h @@ -33,24 +33,30 @@ #include #include #include +#include +#include #include typedef struct { - unsigned short reply_port; + void *saved_state; + thread_t kdp_thread; + int kdp_cpu; + uint32_t session_key; unsigned int conn_seq; + unsigned short reply_port; + unsigned short exception_port; boolean_t is_conn; - void *saved_state; boolean_t is_halted; - unsigned short exception_port; unsigned char exception_seq; boolean_t exception_ack_needed; - int kdp_cpu; - thread_t kdp_thread; } kdp_glob_t; extern kdp_glob_t kdp; extern volatile int kdp_flag; +extern int noresume_on_disconnect; + +extern char kdp_kernelversion_string[256]; #define KDP_READY 0x1 #define KDP_ARP 0x2 @@ -61,6 +67,7 @@ extern volatile int kdp_flag; #define DBG_POST_CORE 0x40 #define PANIC_LOG_DUMP 0x80 #define REBOOT_POST_CORE 0x100 +#define SYSTEM_LOG_DUMP 0x200 typedef boolean_t (*kdp_dispatch_t) ( kdp_pkt_t *, @@ -68,6 +75,15 @@ typedef boolean_t unsigned short * ); +struct debugger_callback { + kern_return_t (*callback) (void*); + void *callback_context; + boolean_t proceed_on_sync_failure; + kern_return_t error; +}; + +extern struct debugger_callback *debugger_callback; + extern boolean_t kdp_packet(