summaryrefslogtreecommitdiff
path: root/recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-08-03 10:51:42 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2009-08-03 10:51:42 +0200
commitd25647f18dbc1b71ffc8d76c2d8437856351d894 (patch)
treec8d0a47a8629fdf492f16764864e79f1348345fb /recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch
parent87e71a8da123ca7af82ad467fa8038b9a157c2b2 (diff)
parent6db30a40ce4e47ae176ec251aec62cb6c03f7ca2 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch')
-rw-r--r--recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch b/recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch
new file mode 100644
index 0000000000..1080b162aa
--- /dev/null
+++ b/recipes/gdb/gdb-6.8/gdb-6.8-fix-compile-karmic.patch
@@ -0,0 +1,22 @@
+fix this on karmic
+
+cc1: warnings being treated as errors
+/home/ich/build/arm/armv5t/tmp/work/i686-armv5te-sdk-oe-linux-gnueabi/gdb-cross-sdk-6.8-r2/gdb-6.8/gdb/eval.c: In function 'evaluate_subexp_standard':
+/home/ich/build/arm/armv5t/tmp/work/i686-armv5te-sdk-oe-linux-gnueabi/gdb-cross-sdk-6.8-r2/gdb-6.8/gdb/eval.c:1705: error: 'subscript_array' may be used uninitialized in this function
+/home/ich/build/arm/armv5t/tmp/work/i686-armv5te-sdk-oe-linux-gnueabi/gdb-cross-sdk-6.8-r2/gdb-6.8/gdb/eval.c:1644: note: 'subscript_array' was declared here
+
+
+
+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. */
+