From: Tom Tromey Date: Wed, 17 Mar 2010 17:27:14 +0000 (+0000) Subject: * linux-nat.c (linux_nat_detach): Check debug_linux_nat. X-Git-Tag: gdb_7_1-2010-03-18-release~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8329654f47c803acfb6bf3606b2317f47cf1daff;p=thirdparty%2Fbinutils-gdb.git * linux-nat.c (linux_nat_detach): Check debug_linux_nat. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 14f6a2cc16a..b4149ffd98d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-03-17 Tom Tromey + + * linux-nat.c (linux_nat_detach): Check debug_linux_nat. + 2010-03-16 Daniel Jacobowitz * symfile.c (generic_load): Reset breakpoints after loading. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index e55d9586ed3..b184945d080 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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);