aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-05 18:49:55 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-05 18:49:55 +0000
commitd07c63e764fce9234317c54d1b54e85c0fa7d063 (patch)
treeffb41ccb2ce69179e3943a6530776482d7d3a0cc /gdb/gdbserver
parentda6d8c049c8b6db7b83409c37e7bc12c67027ed8 (diff)
downloadgdb-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')
-rw-r--r--gdb/gdbserver/linux-low.c3
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);
}