gdb: Remove inappropriate comments

Remove some inappropriate comments in darwin_nat_target::attach,
gnu_nat_target::attach and inf_ptrace_target::attach.

Tested by rebuilding on x86_64-linux.

Copyright-paperwork-exempt: yes
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Charles Baylis 2024-11-19 22:27:37 +01:00 committed by Tom de Vries
parent f5e259f32f
commit 9fc57f35eb
3 changed files with 3 additions and 3 deletions

View File

@ -2032,7 +2032,7 @@ darwin_nat_target::attach (const char *args, int from_tty)
pid = parse_pid_to_attach (args);
if (pid == getpid ()) /* Trying to masturbate? */
if (pid == getpid ())
error (_("I refuse to debug myself!"));
target_announce_attach (from_tty, pid);

View File

@ -2172,7 +2172,7 @@ gnu_nat_target::attach (const char *args, int from_tty)
pid = parse_pid_to_attach (args);
if (pid == getpid ()) /* Trying to masturbate? */
if (pid == getpid ())
error (_("I refuse to debug myself!"));
target_announce_attach (from_tty, pid);

View File

@ -141,7 +141,7 @@ inf_ptrace_target::attach (const char *args, int from_tty)
pid_t pid = parse_pid_to_attach (args);
if (pid == getpid ()) /* Trying to masturbate? */
if (pid == getpid ())
error (_("I refuse to debug myself!"));
target_unpush_up unpusher;