mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 19:44:11 +08:00
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:
parent
f5e259f32f
commit
9fc57f35eb
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user