]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kdp/kdp.c
xnu-517.tar.gz
[apple/xnu.git] / osfmk / kdp / kdp.c
index 35e5b610574df6920d82c151b8a2ea18967d33e1..5cfe516f209ef8f13e76b77bbfe496dd2d5f311a 100644 (file)
@@ -85,7 +85,9 @@ typedef struct{
 
 static kdp_breakpoint_record_t breakpoint_list[MAX_BREAKPOINTS];
 static unsigned int breakpoints_initialized = 0;
+
 int reattach_wait = 0;
+int noresume_on_disconnect = 0;
 
 boolean_t
 kdp_packet(
@@ -216,6 +218,11 @@ kdp_disconnect(
     kdp.is_halted = kdp.is_conn = FALSE;
     kdp.exception_seq = kdp.conn_seq = 0;
 
+    if (noresume_on_disconnect == 1) {
+       reattach_wait = 1;
+       noresume_on_disconnect = 0;
+    }
+
     rp->hdr.is_reply = 1;
     rp->hdr.len = sizeof (*rp);