forked from Imagelibrary/rtems
New. Fix breakage on rh7.
This commit is contained in:
48
contrib/crossrpms/patches/gdb-6.6-rtems4.8-20070218.diff
Normal file
48
contrib/crossrpms/patches/gdb-6.6-rtems4.8-20070218.diff
Normal file
@@ -0,0 +1,48 @@
|
||||
diff -uNr gdb-6.6.orig/bfd/sysdep.h gdb-6.6/bfd/sysdep.h
|
||||
--- gdb-6.6.orig/bfd/sysdep.h 2005-05-05 20:51:14.000000000 +0200
|
||||
+++ gdb-6.6/bfd/sysdep.h 2007-02-17 08:58:24.000000000 +0100
|
||||
@@ -135,7 +135,7 @@
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_STRSTR
|
||||
-extern char *strstr ();
|
||||
+/* extern char *strstr (); */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FTELLO
|
||||
diff -uNr gdb-6.6.orig/gdb/memory-map.c gdb-6.6/gdb/memory-map.c
|
||||
--- gdb-6.6.orig/gdb/memory-map.c 2006-10-05 21:42:31.000000000 +0200
|
||||
+++ gdb-6.6/gdb/memory-map.c 2007-02-18 08:55:17.000000000 +0100
|
||||
@@ -141,10 +141,10 @@
|
||||
{
|
||||
if (strcmp (data->property_name, "blocksize") == 0)
|
||||
{
|
||||
+ char *end = NULL;
|
||||
if (!data->character_data)
|
||||
throw_error (XML_PARSE_ERROR,
|
||||
_("Empty content of 'property' element"));
|
||||
- char *end = NULL;
|
||||
data->currently_parsing->attrib.blocksize
|
||||
= strtoul (data->character_data, &end, 0);
|
||||
if (*end != '\0')
|
||||
diff -uNr gdb-6.6.orig/sim/erc32/exec.c gdb-6.6/sim/erc32/exec.c
|
||||
--- gdb-6.6.orig/sim/erc32/exec.c 2005-03-07 12:09:05.000000000 +0100
|
||||
+++ gdb-6.6/sim/erc32/exec.c 2007-02-17 08:58:24.000000000 +0100
|
||||
@@ -1713,7 +1713,7 @@
|
||||
sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1];
|
||||
sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1];
|
||||
default:
|
||||
- ;
|
||||
+ break;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1886,7 +1886,7 @@
|
||||
sregs->fs[rd & ~1] = sregs->fdp[rd | 1];
|
||||
sregs->fs[rd | 1] = sregs->fdp[rd & ~1];
|
||||
default:
|
||||
- ;
|
||||
+ break;
|
||||
}
|
||||
#endif
|
||||
if (sregs->fpstate == FP_EXC_PE) {
|
||||
Reference in New Issue
Block a user