]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* linux-nat.c (linux_nat_detach): Check debug_linux_nat.
authorTom Tromey <tromey@redhat.com>
Wed, 17 Mar 2010 17:27:14 +0000 (17:27 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 17 Mar 2010 17:27:14 +0000 (17:27 +0000)
gdb/ChangeLog
gdb/linux-nat.c

index 14f6a2cc16a9314aa104f28f86c2276e12a54ce1..b4149ffd98d2388bb11610b727e5a0466778c676 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-16  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * symfile.c (generic_load): Reset breakpoints after loading.
index e55d9586ed3835fc3be6241825cc54964276b32a..b184945d080faa555afeed63b1bfd87a95c37f41 100644 (file)
@@ -1810,10 +1810,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);