* remote.c (remote_cmdlist): New variable.
[deliverable/binutils-gdb.git] / gdb / gdbserver / server.c
index 991ed15caf16ac889c4230a22845a6eecd272b4f..0261e6bdf3a1e1a0feb6b3331426bd11aba5023a 100644 (file)
@@ -772,7 +772,8 @@ err:
 
 /* Handle all of the extended 'v' packets.  */
 void
-handle_v_requests (char *own_buf, char *status, int *signal)
+handle_v_requests (char *own_buf, char *status, int *signal,
+                  int packet_len, int *new_packet_len)
 {
   if (strncmp (own_buf, "vCont;", 6) == 0)
     {
@@ -786,6 +787,10 @@ handle_v_requests (char *own_buf, char *status, int *signal)
       return;
     }
 
+  if (strncmp (own_buf, "vFile:", 6) == 0
+      && handle_vFile (own_buf, packet_len, new_packet_len))
+    return;
+
   /* Otherwise we didn't know what packet it was.  Say we didn't
      understand it.  */
   own_buf[0] = 0;
@@ -1218,8 +1223,10 @@ main (int argc, char *argv[])
                }
            case 'v':
              /* Extended (long) request.  */
-             handle_v_requests (own_buf, &status, &signal);
+             handle_v_requests (own_buf, &status, &signal,
+                                packet_len, &new_packet_len);
              break;
+
            default:
              /* It is a request we don't understand.  Respond with an
                 empty packet so that gdb knows that we don't support this
This page took 0.025242 seconds and 4 git commands to generate.