From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19917 invoked by alias); 17 Mar 2010 16:16:50 -0000 Received: (qmail 19908 invoked by uid 22791); 17 Mar 2010 16:16:49 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Mar 2010 16:16:43 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2HGGgb5019024 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Mar 2010 12:16:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2HGGfmJ012349; Wed, 17 Mar 2010 12:16:41 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o2HGGeAN023709; Wed, 17 Mar 2010 12:16:41 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 7BB2C379848; Wed, 17 Mar 2010 10:16:39 -0600 (MDT) From: Tom Tromey To: gdb-patches@sourceware.org Subject: FYI: add missing debug_linux_nat Reply-To: Tom Tromey Date: Wed, 17 Mar 2010 16:16:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00623.txt.bz2 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 * 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);