diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-03-27 21:35:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-03-27 21:35:35 +0000 |
commit | dc6728652ceb99c628f7e9ad642dd2eb2d01e2bd (patch) | |
tree | bb244d16bcf62ae36cde4cf120b32a9e75764376 /gdb/lin-lwp.c | |
parent | d96429cda9c28efea76a640032cb73f2c02679e4 (diff) | |
download | gdb-dc6728652ceb99c628f7e9ad642dd2eb2d01e2bd.zip gdb-dc6728652ceb99c628f7e9ad642dd2eb2d01e2bd.tar.gz gdb-dc6728652ceb99c628f7e9ad642dd2eb2d01e2bd.tar.bz2 |
s/strerror/safe_strerror/
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r-- | gdb/lin-lwp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index e39e787..216198b 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -376,7 +376,7 @@ lin_lwp_attach_lwp (ptid_t ptid, int verbose) if (ptrace (PTRACE_ATTACH, GET_LWP (ptid), 0, 0) < 0) error ("Can't attach %s: %s", target_pid_to_str (ptid), - strerror (errno)); + safe_strerror (errno)); pid = waitpid (GET_LWP (ptid), &status, 0); if (pid == -1 && errno == ECHILD) @@ -454,7 +454,7 @@ detach_callback (struct lwp_info *lp, void *data) if (ptrace (PTRACE_CONT, GET_LWP (lp->ptid), 0, WSTOPSIG (lp->status)) < 0) error ("Can't continue %s: %s", target_pid_to_str (lp->ptid), - strerror (errno)); + safe_strerror (errno)); lp->stopped = 0; lp->signalled = 0; @@ -471,7 +471,7 @@ detach_callback (struct lwp_info *lp, void *data) if (ptrace (PTRACE_DETACH, GET_LWP (lp->ptid), 0, WSTOPSIG (lp->status)) < 0) error ("Can't detach %s: %s", target_pid_to_str (lp->ptid), - strerror (errno)); + safe_strerror (errno)); delete_lwp (lp->ptid); } @@ -973,7 +973,7 @@ child_wait (ptid_t ptid, struct target_waitstatus *ourstatus) if (pid == -1) { - warning ("Child process unexpectedly missing: %s", strerror (errno)); + warning ("Child process unexpectedly missing: %s", safe_strerror (errno)); /* Claim it exited with unknown signal. */ ourstatus->kind = TARGET_WAITKIND_SIGNALLED; |