target_pid_to_str (lp->pid));
}
if (debug_lin_lwp)
- printf ("%s exited.\n", target_pid_to_str (lp->pid));
+ fprintf_unfiltered (gdb_stdlog,
+ "%s exited.\n", target_pid_to_str (lp->pid));
delete_lwp (lp->pid);
return 0;
thread will have already tripped on it. */
if (debug_lin_lwp)
- printf ("Tripped breakpoint at %lx in LWP %d"
- " while waiting for SIGSTOP.\n",
- (long) read_pc_pid (lp->pid), pid);
+ fprintf_unfiltered (gdb_stdlog,
+ "Tripped breakpoint at %lx in LWP %d"
+ " while waiting for SIGSTOP.\n",
+ (long) read_pc_pid (lp->pid), pid);
/* Set the PC to before the trap. */
if (DECR_PC_AFTER_BREAK)
else
{
if (debug_lin_lwp)
- printf ("Received %s in LWP %d while waiting for SIGSTOP.\n",
- strsignal (WSTOPSIG (status)), pid);
+ fprintf_unfiltered (gdb_stdlog,
+ "Received %s in LWP %d while waiting for SIGSTOP.\n",
+ strsignal (WSTOPSIG (status)), pid);
/* The thread was stopped with a signal other than
SIGSTOP, and didn't accidentiliy trip a breakpoint.
if (lp)
{
if (debug_lin_lwp)
- printf ("Using pending wait status for LWP %d.\n",
- GET_LWP (lp->pid));
+ fprintf_unfiltered (gdb_stdlog,
+ "Using pending wait status for LWP %d.\n",
+ GET_LWP (lp->pid));
status = lp->status;
lp->status = 0;
else if (is_lwp (pid))
{
if (debug_lin_lwp)
- printf ("Waiting for specific LWP %d.\n", GET_LWP (pid));
+ fprintf_unfiltered (gdb_stdlog,
+ "Waiting for specific LWP %d.\n", GET_LWP (pid));
/* We have a specific LWP to check. */
lp = find_lwp_pid (GET_LWP (pid));
if (debug_lin_lwp)
if (status)
- printf ("Using pending wait status for LWP %d.\n",
- GET_LWP (lp->pid));
+ fprintf_unfiltered (gdb_stdlog,
+ "Using pending wait status for LWP %d.\n",
+ GET_LWP (lp->pid));
/* If we have to wait, take into account whether PID is a cloned
process or not. And we have to convert it to something that
target_pid_to_str (lp->pid));
}
if (debug_lin_lwp)
- printf ("%s exited.\n", target_pid_to_str (lp->pid));
+ fprintf_unfiltered (gdb_stdlog,
+ "%s exited.\n",
+ target_pid_to_str (lp->pid));
delete_lwp (lp->pid);
&& WSTOPSIG (status) == SIGSTOP)
{
if (debug_lin_lwp)
- printf ("Delayed SIGSTOP caught for %s.\n",
- target_pid_to_str (lp->pid));
+ fprintf_unfiltered (gdb_stdlog,
+ "Delayed SIGSTOP caught for %s.\n",
+ target_pid_to_str (lp->pid));
/* This is a delayed SIGSTOP. */
lp->signalled = 0;