From patchwork Tue Sep 16 19:42:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Durigan Junior X-Patchwork-Id: 2866 Received: (qmail 20129 invoked by alias); 16 Sep 2014 19:42:08 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 20119 invoked by uid 89); 16 Sep 2014 19:42:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 16 Sep 2014 19:42:07 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8GJg5je010702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 16 Sep 2014 15:42:05 -0400 Received: from psique.yyz.redhat.com (dhcp-10-15-16-169.yyz.redhat.com [10.15.16.169]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8GJg4cR015658; Tue, 16 Sep 2014 15:42:04 -0400 From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [commit][obvious] Replace "fprintf (stderr..." by "fprintf_unfiltered (gdb_stdlog..." Date: Tue, 16 Sep 2014 15:42:01 -0400 Message-Id: <1410896521-31726-1-git-send-email-sergiodj@redhat.com> X-IsSubscribed: yes This is an obvious replacement of "fprintf (stderr..." by "fprintf_unfiltered (gdb_stdlog...", which is the standard to use in these cases. gdb/ChangeLog: 2014-09-16 Sergio Durigan Junior PR cli/7233 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by "fprintf_unfiltered (gdb_stdlog...)". --- gdb/ChangeLog | 6 ++++++ gdb/linux-nat.c | 26 +++++++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5234a50..d6453f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-09-16 Sergio Durigan Junior + + PR cli/7233 + * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by + "fprintf_unfiltered (gdb_stdlog...)". + 2014-09-16 Patrick Palka PR breakpoints/12526 diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 557c84b..5a82d23 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -3326,9 +3326,10 @@ retry: gdb_assert (lp->resumed); if (debug_linux_nat) - fprintf (stderr, - "LWP %ld got an event %06x, leaving pending.\n", - ptid_get_lwp (lp->ptid), lp->status); + fprintf_unfiltered (gdb_stdlog, + "LWP %ld got an event %06x, " + "leaving pending.\n", + ptid_get_lwp (lp->ptid), lp->status); if (WIFSTOPPED (lp->status)) { @@ -3351,11 +3352,13 @@ retry: lp->status = 0; if (debug_linux_nat) - fprintf (stderr, - "LLW: LWP %ld hit a breakpoint while" - " waiting for another process;" - " cancelled it\n", - ptid_get_lwp (lp->ptid)); + fprintf_unfiltered (gdb_stdlog, + "LLW: LWP %ld hit a " + "breakpoint while " + "waiting for another " + "process; " + "cancelled it\n", + ptid_get_lwp (lp->ptid)); } } else @@ -3364,9 +3367,10 @@ retry: else if (WIFEXITED (lp->status) || WIFSIGNALED (lp->status)) { if (debug_linux_nat) - fprintf (stderr, - "Process %ld exited while stopping LWPs\n", - ptid_get_lwp (lp->ptid)); + fprintf_unfiltered (gdb_stdlog, + "Process %ld exited while stopping " + "LWPs\n", + ptid_get_lwp (lp->ptid)); /* This was the last lwp in the process. Since events are serialized to GDB core, and we can't