Implement 'set/show exec-file-mismatch'.
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index 3e7c43fab52e45f49604518a7d742b743b896a79..b44adca88df047959467c564877f0bbfd4f15a9e 100644 (file)
@@ -2785,6 +2785,9 @@ attach_command (const char *args, int from_tty)
        target_stop (ptid_t (inferior_ptid.pid ()));
     }
 
+  /* Check for exec file mismatch, and let the user solve it.  */
+  validate_exec_file (from_tty);
+
   mode = async_exec ? ATTACH_POST_WAIT_RESUME : ATTACH_POST_WAIT_STOP;
 
   /* Some system don't generate traps when attaching to inferior.
This page took 0.028234 seconds and 4 git commands to generate.