diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 47760b7..c85f7c0 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1929,17 +1929,7 @@ windows_nat_target::attach (const char *args, int from_tty) DebugSetProcessKillOnExit (FALSE); - if (from_tty) - { - const char *exec_file = get_exec_file (0); - - if (exec_file) - printf_unfiltered ("Attaching to program `%s', %s\n", exec_file, - target_pid_to_str (ptid_t (pid)).c_str ()); - else - printf_unfiltered ("Attaching to %s\n", - target_pid_to_str (ptid_t (pid)).c_str ()); - } + target_announce_attach (from_tty, pid); #ifdef __x86_64__ HANDLE h = OpenProcess (PROCESS_QUERY_INFORMATION, FALSE, pid); |