* linux-nat.c (linux_nat_detach): Check debug_linux_nat.
authorTom Tromey <tromey@redhat.com>
Wed, 17 Mar 2010 16:17:00 +0000 (16:17 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 17 Mar 2010 16:17:00 +0000 (16:17 +0000)
gdb/ChangeLog
gdb/linux-nat.c

index 6afa41dfafe2ca8d5f9afe74bfd928362b2dccb4..5578d4fab4c4e99362dc52b903d0545047e0a3b2 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-17  Tom Tromey  <tromey@redhat.com>
+
+       * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
+
 2010-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
index 6a8a43792aa7228687f677d3a938e212476c9a67..3afe9dd21283746ef477fd8b60292d1e22a9cf25 100644 (file)
@@ -1783,10 +1783,11 @@ linux_nat_detach (struct target_ops *ops, char *args, int from_tty)
         pass it along with PTRACE_DETACH.  */
       args = alloca (8);
       sprintf (args, "%d", (int) WSTOPSIG (status));
-      fprintf_unfiltered (gdb_stdlog,
-                         "LND: Sending signal %s to %s\n",
-                         args,
-                         target_pid_to_str (main_lwp->ptid));
+      if (debug_linux_nat)
+       fprintf_unfiltered (gdb_stdlog,
+                           "LND: Sending signal %s to %s\n",
+                           args,
+                           target_pid_to_str (main_lwp->ptid));
     }
 
   delete_lwp (main_lwp->ptid);