Browse Source

2001-05-01 Michael Snyder <msnyder@redhat.com>

* lin-lwp.c: Change printf to fprintf_unfiltered.
dberlin-typesystem-branch
Michael Snyder 26 years ago
parent
commit
9085700cc0
  1. 1
      gdb/ChangeLog
  2. 37
      gdb/lin-lwp.c

1
gdb/ChangeLog

@ -1,5 +1,6 @@
2001-05-01 Michael Snyder <msnyder@redhat.com> 2001-05-01 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c: Change printf to fprintf_unfiltered.
* Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o. * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
2001-05-01 Nicholas Duffek <nsd@redhat.com> 2001-05-01 Nicholas Duffek <nsd@redhat.com>

37
gdb/lin-lwp.c

@ -520,7 +520,8 @@ stop_wait_callback (struct lwp_info *lp, void *data)
target_pid_to_str (lp->pid)); target_pid_to_str (lp->pid));
} }
if (debug_lin_lwp) 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); delete_lwp (lp->pid);
return 0; return 0;
@ -549,9 +550,10 @@ stop_wait_callback (struct lwp_info *lp, void *data)
thread will have already tripped on it. */ thread will have already tripped on it. */
if (debug_lin_lwp) if (debug_lin_lwp)
printf ("Tripped breakpoint at %lx in LWP %d" fprintf_unfiltered (gdb_stdlog,
" while waiting for SIGSTOP.\n", "Tripped breakpoint at %lx in LWP %d"
(long) read_pc_pid (lp->pid), pid); " while waiting for SIGSTOP.\n",
(long) read_pc_pid (lp->pid), pid);
/* Set the PC to before the trap. */ /* Set the PC to before the trap. */
if (DECR_PC_AFTER_BREAK) if (DECR_PC_AFTER_BREAK)
@ -560,8 +562,9 @@ stop_wait_callback (struct lwp_info *lp, void *data)
else else
{ {
if (debug_lin_lwp) if (debug_lin_lwp)
printf ("Received %s in LWP %d while waiting for SIGSTOP.\n", fprintf_unfiltered (gdb_stdlog,
strsignal (WSTOPSIG (status)), pid); "Received %s in LWP %d while waiting for SIGSTOP.\n",
strsignal (WSTOPSIG (status)), pid);
/* The thread was stopped with a signal other than /* The thread was stopped with a signal other than
SIGSTOP, and didn't accidentiliy trip a breakpoint. SIGSTOP, and didn't accidentiliy trip a breakpoint.
@ -620,8 +623,9 @@ lin_lwp_wait (int pid, struct target_waitstatus *ourstatus)
if (lp) if (lp)
{ {
if (debug_lin_lwp) if (debug_lin_lwp)
printf ("Using pending wait status for LWP %d.\n", fprintf_unfiltered (gdb_stdlog,
GET_LWP (lp->pid)); "Using pending wait status for LWP %d.\n",
GET_LWP (lp->pid));
status = lp->status; status = lp->status;
lp->status = 0; lp->status = 0;
@ -635,7 +639,8 @@ lin_lwp_wait (int pid, struct target_waitstatus *ourstatus)
else if (is_lwp (pid)) else if (is_lwp (pid))
{ {
if (debug_lin_lwp) 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. */ /* We have a specific LWP to check. */
lp = find_lwp_pid (GET_LWP (pid)); lp = find_lwp_pid (GET_LWP (pid));
@ -645,8 +650,9 @@ lin_lwp_wait (int pid, struct target_waitstatus *ourstatus)
if (debug_lin_lwp) if (debug_lin_lwp)
if (status) if (status)
printf ("Using pending wait status for LWP %d.\n", fprintf_unfiltered (gdb_stdlog,
GET_LWP (lp->pid)); "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 /* 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 process or not. And we have to convert it to something that
@ -725,7 +731,9 @@ lin_lwp_wait (int pid, struct target_waitstatus *ourstatus)
target_pid_to_str (lp->pid)); target_pid_to_str (lp->pid));
} }
if (debug_lin_lwp) 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); delete_lwp (lp->pid);
@ -743,8 +751,9 @@ lin_lwp_wait (int pid, struct target_waitstatus *ourstatus)
&& WSTOPSIG (status) == SIGSTOP) && WSTOPSIG (status) == SIGSTOP)
{ {
if (debug_lin_lwp) if (debug_lin_lwp)
printf ("Delayed SIGSTOP caught for %s.\n", fprintf_unfiltered (gdb_stdlog,
target_pid_to_str (lp->pid)); "Delayed SIGSTOP caught for %s.\n",
target_pid_to_str (lp->pid));
/* This is a delayed SIGSTOP. */ /* This is a delayed SIGSTOP. */
lp->signalled = 0; lp->signalled = 0;

Loading…
Cancel
Save