Implement 'set/show exec-file-mismatch'.
[deliverable/binutils-gdb.git] / gdb / remote.c
index 665e2773e15be3ae69da88bc4d38aae6030731d7..be2987707ff7ea36c901d0b49ed4fcb230c2ea45 100644 (file)
@@ -2411,6 +2411,9 @@ remote_target::remote_add_inferior (bool fake_pid_p, int pid, int attached,
   if (try_open_exec && get_exec_file (0) == NULL)
     exec_file_locate_attach (pid, 0, 1);
 
+  /* Check for exec file mismatch, and let the user solve it.  */
+  validate_exec_file (1);
+
   return inf;
 }
 
@@ -14312,8 +14315,9 @@ set_range_stepping (const char *ignore_args, int from_tty,
     }
 }
 
+void _initialize_remote ();
 void
-_initialize_remote (void)
+_initialize_remote ()
 {
   struct cmd_list_element *cmd;
   const char *cmd_name;
This page took 0.026237 seconds and 4 git commands to generate.