aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-03-17 16:17:00 +0000
committerTom Tromey <tromey@redhat.com>2010-03-17 16:17:00 +0000
commitddabfc735b012068343f76ec05226033eb57fa22 (patch)
tree4fb73e4d7e84813150fd4ef13fae0eee36693c05 /gdb/linux-nat.c
parent4b0f07110e55b09f44ef95a36e4d7ca4612de33c (diff)
downloadgdb-ddabfc735b012068343f76ec05226033eb57fa22.zip
gdb-ddabfc735b012068343f76ec05226033eb57fa22.tar.gz
gdb-ddabfc735b012068343f76ec05226033eb57fa22.tar.bz2
* linux-nat.c (linux_nat_detach): Check debug_linux_nat.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 6a8a437..3afe9dd 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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);