Factor out "Detaching from program" message printing
[deliverable/binutils-gdb.git] / gdb / nto-procfs.c
index eb7dcfeb089abde9b59aee30fb50896387978765..f49453d733b27bbfd49315889825d7a7d7f7482e 100644 (file)
@@ -962,15 +962,8 @@ procfs_detach (struct target_ops *ops, const char *args, int from_tty)
   int siggnal = 0;
   int pid;
 
-  if (from_tty)
-    {
-      char *exec_file = get_exec_file (0);
-      if (exec_file == 0)
-       exec_file = "";
-      printf_unfiltered ("Detaching from program: %s %s\n",
-                        exec_file, target_pid_to_str (inferior_ptid));
-      gdb_flush (gdb_stdout);
-    }
+  target_announce_detach ();
+
   if (args)
     siggnal = atoi (args);
 
This page took 0.027279 seconds and 4 git commands to generate.