diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-06-29 04:01:39 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-06-29 04:01:39 +0000 |
commit | 43d5792ce14b9aadeb177755d94f8075c8d5ca1f (patch) | |
tree | 298cec92db3cb4865649fd07456dbaa8dea66e99 /gdb/gdbserver/linux-low.c | |
parent | 7cfbef4774a1dc59ee7bcd8999887aaffe5e9e8e (diff) | |
download | gdb-43d5792ce14b9aadeb177755d94f8075c8d5ca1f.zip gdb-43d5792ce14b9aadeb177755d94f8075c8d5ca1f.tar.gz gdb-43d5792ce14b9aadeb177755d94f8075c8d5ca1f.tar.bz2 |
* configure.in: Check whether we need to prototype strerror.
* server.h: Optionally prototype strerror.
* gdbreplay.c (perror_with_name): Use strerror.
* linux-low.c (linux_attach_lwp): Use strerror.
* utils.c (perror_with_name): Use strerror.
* config.in, configure: Regenerated.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c700d40..55c187c 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -175,8 +175,7 @@ linux_attach_lwp (int pid, int tid) if (ptrace (PTRACE_ATTACH, pid, 0, 0) != 0) { fprintf (stderr, "Cannot attach to process %d: %s (%d)\n", pid, - errno < sys_nerr ? sys_errlist[errno] : "unknown error", - errno); + strerror (errno), errno); fflush (stderr); /* If we fail to attach to an LWP, just return. */ |