summaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-20 14:38:31 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-20 14:38:31 +0000
commit7c6a2b226cf8475e4dfcc16fd14e461c83055728 (patch)
treeed2e78661546184664638ec252dbf605126fb402 /sources
parenta703554ec6f28972bbbd9dc62d1c3bbbc35df7ed (diff)
downloadbuildroot-novena-7c6a2b226cf8475e4dfcc16fd14e461c83055728.tar.gz
buildroot-novena-7c6a2b226cf8475e4dfcc16fd14e461c83055728.zip
Fix gdb to not use sys_errlist[] and sys_nerr,
Diffstat (limited to 'sources')
-rw-r--r--sources/gdb.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/gdb.patch b/sources/gdb.patch
index ef04859d6..e7868a172 100644
--- a/sources/gdb.patch
+++ b/sources/gdb.patch
@@ -498,3 +498,17 @@ Fix build on Sparc.
#include <asm/reg.h>
#else
#include <machine/reg.h>
+--- gdb-5.3/gdb/gdbserver/utils.c.orig 2003-08-20 08:34:18.000000000 -0600
++++ gdb-5.3/gdb/gdbserver/utils.c 2003-08-20 08:35:00.000000000 -0600
+@@ -40,9 +40,8 @@
+ const char *err;
+ char *combined;
+
+- if (errno < sys_nerr)
+- err = sys_errlist[errno];
+- else
++ err = strerror (errno);
++ if (err == NULL)
+ err = "unknown error";
+
+ combined = (char *) alloca (strlen (err) + strlen (string) + 3);