diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index ddc8623..840201d 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -1786,19 +1786,7 @@ procfs_target::attach (const char *args, int from_tty) void procfs_target::detach (inferior *inf, int from_tty) { - int pid = inferior_ptid.pid (); - - if (from_tty) - { - const char *exec_file; - - exec_file = get_exec_file (0); - if (exec_file == NULL) - exec_file = ""; - - printf_filtered (_("Detaching from program: %s, %s\n"), exec_file, - target_pid_to_str (ptid_t (pid)).c_str ()); - } + target_announce_detach (from_tty); do_detach (); |