]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/remote.c
PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
[thirdparty/binutils-gdb.git] / gdb / remote.c
index ec8b4982e978e10aca747a7161d25c100ed588d5..af7508a3151c5c37c412738097e92a99a7db88d7 100644 (file)
@@ -1800,7 +1800,7 @@ remote_add_inferior (int fake_pid_p, int pid, int attached,
   /* If no main executable is currently open then attempt to
      open the file that was executed to create this inferior.  */
   if (try_open_exec && get_exec_file (0) == NULL)
-    exec_file_locate_attach (pid, 1);
+    exec_file_locate_attach (pid, 0, 1);
 
   return inf;
 }