Extended-remote Linux follow fork
[deliverable/binutils-gdb.git] / gdb / gdbserver / server.c
index 1544e99bdb3a9d79226ce8c00b41da151b47e34d..39692672134887ae5bf35ee7a551790ddb06bf43 100644 (file)
@@ -2160,6 +2160,9 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
       if (the_target->pid_to_exec_file != NULL)
        strcat (own_buf, ";qXfer:exec-file:read+");
 
+      /* Reinitialize the target as needed for the new connection.  */
+      target_handle_new_gdb_connection ();
+
       return;
     }
 
This page took 0.039746 seconds and 4 git commands to generate.