aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Baylis <cbaylis@undo.io>2024-11-19 22:27:37 +0100
committerTom de Vries <tdevries@suse.de>2024-11-19 22:27:37 +0100
commit9fc57f35ebb7da7fa13940fd00cce455f25316ce (patch)
tree96c97ed0c1d9536073d14004de0b66e04226a56b
parentf5e259f32f011dc563b3da9e279acaee3aafba8e (diff)
downloadfsf-binutils-gdb-9fc57f35ebb7da7fa13940fd00cce455f25316ce.zip
fsf-binutils-gdb-9fc57f35ebb7da7fa13940fd00cce455f25316ce.tar.gz
fsf-binutils-gdb-9fc57f35ebb7da7fa13940fd00cce455f25316ce.tar.bz2
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>
-rw-r--r--gdb/darwin-nat.c2
-rw-r--r--gdb/gnu-nat.c2
-rw-r--r--gdb/inf-ptrace.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 7ba1fbb..e4243f6 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -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);
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 6cfac08..a8a4da1 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -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);
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
index 36d6e2a..6ef2ea8 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -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;