Print the "file" command suggestion in exec_file_locate_attach
[deliverable/binutils-gdb.git] / gdb / exec.c
index 90811c081d3ebcb3fe1868e01cd2ce1ee5710ba7..a10ab9b4d07616552147d9f918e00faa7e439cbe 100644 (file)
@@ -151,7 +151,13 @@ exec_file_locate_attach (int pid, int from_tty)
   /* Try to determine a filename from the process itself.  */
   exec_file = target_pid_to_exec_file (pid);
   if (exec_file == NULL)
-    return;
+    {
+      warning (_("No executable has been specified and target does not "
+                "support\n"
+                "determining executable automatically.  "
+                "Try using the \"file\" command."));
+      return;
+    }
 
   /* If gdb_sysroot is not empty and the discovered filename
      is absolute then prefix the filename with gdb_sysroot.  */
This page took 0.023301 seconds and 4 git commands to generate.