summaryrefslogtreecommitdiffstats
path: root/patches/gdb-6.8
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2010-01-18 17:25:13 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-01-20 00:40:29 +0100
commit4bcb8887fa17d0765dcb955c5b67b6441cde0a7b (patch)
tree24591452a0ebb0dcf140b08ae9cfd755d601fbd1 /patches/gdb-6.8
parent98ae20ae885f38e93c56ad862503d04f5782ddd9 (diff)
downloadptxdist-4bcb8887fa17d0765dcb955c5b67b6441cde0a7b.tar.gz
ptxdist-4bcb8887fa17d0765dcb955c5b67b6441cde0a7b.tar.xz
[gdb] add patch for gdb-6.8
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'patches/gdb-6.8')
-rw-r--r--patches/gdb-6.8/gdb-6.8-fix-compile-karmic.patch27
-rw-r--r--patches/gdb-6.8/series1
2 files changed, 28 insertions, 0 deletions
diff --git a/patches/gdb-6.8/gdb-6.8-fix-compile-karmic.patch b/patches/gdb-6.8/gdb-6.8-fix-compile-karmic.patch
new file mode 100644
index 000000000..1f4353f8f
--- /dev/null
+++ b/patches/gdb-6.8/gdb-6.8-fix-compile-karmic.patch
@@ -0,0 +1,27 @@
+From d7931d9affb51de54069b75ae0ae9648ffdd64fc Mon Sep 17 00:00:00 2001
+From: Holger Hans Peter Freyther <zecke@selfish.org>
+Date: Sun, 2 Aug 2009 04:09:03 +0200
+Subject: [PATCH] gdb: Add a patch to fix compilation of gdb 6.8
+
+gcc warns about the subscript_array being uninitialized,
+just memset this area... luckily I can not break much as
+this is for fortran code.
+
+Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
+
+Index: gdb-6.8/gdb/eval.c
+===================================================================
+--- gdb-6.8.orig/gdb/eval.c 2009-08-02 03:25:20.000000000 +0200
++++ gdb-6.8/gdb/eval.c 2009-08-02 03:53:39.000000000 +0200
+@@ -1656,6 +1656,8 @@
+ if (nargs != ndimensions)
+ error (_("Wrong number of subscripts"));
+
++ memset(&subscript_array, 0, sizeof(subscript_array));
++
+ /* Now that we know we have a legal array subscript expression
+ let us actually find out where this element exists in the array. */
+
+--
+1.6.1
+
diff --git a/patches/gdb-6.8/series b/patches/gdb-6.8/series
index 6382ea645..32f89ddb7 100644
--- a/patches/gdb-6.8/series
+++ b/patches/gdb-6.8/series
@@ -1,2 +1,3 @@
Makefile_in_cppflags.diff -p0
m68k-linux-nat-get_regcache_arch.patch
+gdb-6.8-fix-compile-karmic.patch