aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2014-09-16 15:30:41 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2014-09-16 15:30:41 -0400
commit2f693f9d21a36e333994ef92117ba49a6d506334 (patch)
tree778f3f23b07af925235040fa6a86849ad6bd07c7 /gdb/linux-nat.c
parent91c190590ab3de6d214bcf307240b4ac291f697d (diff)
downloadgdb-2f693f9d21a36e333994ef92117ba49a6d506334.zip
gdb-2f693f9d21a36e333994ef92117ba49a6d506334.tar.gz
gdb-2f693f9d21a36e333994ef92117ba49a6d506334.tar.bz2
Replace "fprintf (stderr..." by "fprintf_unfiltered (gdb_stdlog..."
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 <sergiodj@redhat.com> PR cli/7233 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by "fprintf_unfiltered (gdb_stdlog...)".
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c26
1 files changed, 15 insertions, 11 deletions
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