public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: add missing debug_linux_nat
@ 2010-03-17 16:16 Tom Tromey
  2010-03-17 17:31 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2010-03-17 16:16 UTC (permalink / raw)
  To: gdb-patches

I'm checking this in.

I saw a strange message today:

LND: Sending signal 11 to process 13765

This is caused by a missing test of debug_linux_nat.  Thanks to Pedro
for pointing out the linux-nat.c debugging print convention.

Tom

2010-03-17  Tom Tromey  <tromey@redhat.com>

	* linux-nat.c (linux_nat_detach): Check debug_linux_nat.

Index: linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.c,v
retrieving revision 1.164
diff -u -r1.164 linux-nat.c
--- linux-nat.c	24 Feb 2010 17:01:57 -0000	1.164
+++ linux-nat.c	17 Mar 2010 16:14:01 -0000
@@ -1783,10 +1783,11 @@
 	 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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FYI: add missing debug_linux_nat
  2010-03-17 16:16 FYI: add missing debug_linux_nat Tom Tromey
@ 2010-03-17 17:31 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2010-03-17 17:31 UTC (permalink / raw)
  To: gdb-patches

>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

Tom> I'm checking this in.
Tom> I saw a strange message today:
Tom> LND: Sending signal 11 to process 13765
Tom> This is caused by a missing test of debug_linux_nat.  Thanks to Pedro
Tom> for pointing out the linux-nat.c debugging print convention.

I've also committed this to the 7.1 branch.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-17 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-17 16:16 FYI: add missing debug_linux_nat Tom Tromey
2010-03-17 17:31 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).