Implement 'set/show exec-file-mismatch'.
[deliverable/binutils-gdb.git] / gdb / remote.c
index 03a00db0e8ce3342866b032543b25ac74764c44d..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;
 }
 
This page took 0.029888 seconds and 4 git commands to generate.