gdb: fixed the build.

This commit is contained in:
Tilman Sauerbeck 2009-06-11 16:29:16 +02:00
parent 4bdcc660fd
commit 0dc4a9fdc0
3 changed files with 19 additions and 2 deletions

View File

@ -1 +1,2 @@
c9da266b884fb8fa54df786dfaadbc7a gdb-6.8.tar.bz2
5df490c58764ef07175fc45a6691da83 gdb.diff

View File

@ -5,11 +5,15 @@
name=gdb
version=6.8
release=1
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
release=2
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 gdb.diff)
build() {
cd $name-$version
# fix the build with gcc 4.4:
patch -p1 -i $SRC/gdb.diff
./configure --prefix=/usr
make
make DESTDIR=$PKG install

12
gdb/gdb.diff Normal file
View File

@ -0,0 +1,12 @@
diff -aur gdb-6.8.orig/gdb/eval.c gdb-6.8/gdb/eval.c
--- gdb-6.8.orig/gdb/eval.c 2008-02-04 01:23:04.000000000 +0100
+++ gdb-6.8/gdb/eval.c 2009-06-11 16:05:46.018550469 +0200
@@ -1647,6 +1647,8 @@
struct type *tmp_type;
int offset_item; /* The array offset where the item lives */
+ memset (subscript_array, 0, sizeof (subscript_array));
+
if (nargs > MAX_FORTRAN_DIMS)
error (_("Too many subscripts for F77 (%d Max)"), MAX_FORTRAN_DIMS);