]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Remove inappropriate comments
authorCharles Baylis <cbaylis@undo.io>
Tue, 19 Nov 2024 21:27:37 +0000 (22:27 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 19 Nov 2024 21:27:37 +0000 (22:27 +0100)
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>
gdb/darwin-nat.c
gdb/gnu-nat.c
gdb/inf-ptrace.c

index 7ba1fbb67755b030db645da1a08e949bb8da3b24..e4243f676487cc84d2e6fd1527482a8e899dba46 100644 (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);
index 6cfac08e5ac81287e9417e9659209042d33a756e..a8a4da1c8732b40cb811315768ce0a2d5a0b4c16 100644 (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);
index 36d6e2aa697166164457b8570013f57a4bc9798b..6ef2ea845621130ad2f0adf87ec6d1bc42a35e39 100644 (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;