summaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-02-05 18:49:55 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-02-05 18:49:55 +0000
commitca4434e0a2a99ecb000757414808c1d585b2d422 (patch)
tree9b082d4d7b819fa53e7208644a053c984e327c6f /gdb/gdbserver
parent485bf27046ad0f2dc1f657f80a38c594565ef933 (diff)
downloadgdb-ca4434e0a2a99ecb000757414808c1d585b2d422.tar.gz
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 726e276540d..e785aebdbc1 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);
}