diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-02-05 18:49:55 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-02-05 18:49:55 +0000 |
commit | d07c63e764fce9234317c54d1b54e85c0fa7d063 (patch) | |
tree | ffb41ccb2ce69179e3943a6530776482d7d3a0cc /gdb/gdbserver/linux-low.c | |
parent | da6d8c049c8b6db7b83409c37e7bc12c67027ed8 (diff) | |
download | gdb-d07c63e764fce9234317c54d1b54e85c0fa7d063.zip gdb-d07c63e764fce9234317c54d1b54e85c0fa7d063.tar.gz gdb-d07c63e764fce9234317c54d1b54e85c0fa7d063.tar.bz2 |
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (create_inferior): Call strerror instead of
grubbing through sys_errlist.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 726e276..e785aeb 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -32,6 +32,7 @@ #include <signal.h> #include <sys/ioctl.h> #include <fcntl.h> +#include <string.h> /***************Begin MY defs*********************/ static char my_registers[REGISTER_BYTES]; @@ -70,7 +71,7 @@ create_inferior (char *program, char **allargs) execv (program, allargs); fprintf (stderr, "Cannot exec %s: %s.\n", program, - errno < sys_nerr ? sys_errlist[errno] : "unknown error"); + strerror (errno)); fflush (stderr); _exit (0177); } |