* gdbserver/linux-low.c (create_inferior): Call strerror instead of
grubbing through sys_errlist.
+2002-02-05 Daniel Jacobowitz <drow@mvista.com>
+
+ * gdbserver/linux-low.c (create_inferior): Call strerror instead of
+ grubbing through sys_errlist.
+
2002-02-05 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
+#include <string.h>
/***************Begin MY defs*********************/
static char my_registers[REGISTER_BYTES];
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);
}