/* Handle all of the extended 'v' packets. */ void handle_v_requests (char *own_buf, char *status, int *signal, int packet_len, int *new_packet_len) { if (!disable_packet_vCont) { if (strncmp (own_buf, "vCont;", 6) == 0) { require_running (own_buf); handle_v_cont (own_buf, status, signal); return; } if (strncmp (own_buf, "vCont?", 6) == 0) { strcpy (own_buf, "vCont;c;C;s;S"); return; } } if (strncmp (own_buf, "vFile:", 6) == 0 && handle_vFile (own_buf, packet_len, new_packet_len)) return; if (strncmp (own_buf, "vAttach;", 8) == 0) { if (target_running ()) { fprintf (stderr, "Already debugging a process\n"); write_enn (own_buf); return; } handle_v_attach (own_buf, status, signal); return; } if (strncmp (own_buf, "vRun;", 5) == 0) { if (target_running ()) { fprintf (stderr, "Already debugging a process\n"); write_enn (own_buf); return; } handle_v_run (own_buf, status, signal); return; } /* Otherwise we didn't know what packet it was. Say we didn't understand it. */ own_buf[0] = 0; return; }
/* Handle all of the extended 'v' packets. */ void handle_v_requests (char *own_buf, char *status, unsigned char *signal) { if (strncmp (own_buf, "vCont;", 6) == 0) { handle_v_cont (own_buf, status, signal); return; } if (strncmp (own_buf, "vCont?", 6) == 0) { strcpy (own_buf, "vCont;c;C;s;S"); return; } /* Otherwise we didn't know what packet it was. Say we didn't understand it. */ own_buf[0] = 0; return; }