aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
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 /gdb/gnu-nat.c
parentf5e259f32f011dc563b3da9e279acaee3aafba8e (diff)
downloadgdb-9fc57f35ebb7da7fa13940fd00cce455f25316ce.zip
gdb-9fc57f35ebb7da7fa13940fd00cce455f25316ce.tar.gz
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>
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c2
1 files changed, 1 insertions, 1 deletions
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);