From d07c63e764fce9234317c54d1b54e85c0fa7d063 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 5 Feb 2002 18:49:55 +0000 Subject: 2002-02-05 Daniel Jacobowitz * gdbserver/linux-low.c (create_inferior): Call strerror instead of grubbing through sys_errlist. --- gdb/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ba3727..b3a4b72 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2002-02-05 Daniel Jacobowitz + * gdbserver/linux-low.c (create_inferior): Call strerror instead of + grubbing through sys_errlist. + +2002-02-05 Daniel Jacobowitz + * gdbserver/linux-low.c: New file, copied exactly from low-linux.c. 2002-02-04 Pierre Muller 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 #include #include +#include /***************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); } -- cgit v1.1