This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[CT-NG] [PATCH] fix gdb-patches for 6.5 and 6.6


Hi Yann, Hi all,

the current gdb-patches for 6.5 and 6.6 in ct-ng doesn't work - at least
for mipsel:

- 400-mips-coredump.patch-2.4.23-29: this doesn't apply anymore. Comes from
  6.2.1. I'm not sure, if this is necessary because it's not even in 6.8 -->
  drop it!
+ 700-fix-missing-initial-value.patch: this fixes an gcc-warning about a
  missing inital value. This warning causes gcc to stop compile process
  because of -Werror

All other changes are only because line number changed from 6.3/6.4 to 6.5. This 
doesn't affect the build process at all.

Hope this helps somebody.

best regards,

Alexander

Signend-Off: Alexander Bigga <linux@bigga.de>

Index: patches/gdb/6.5/400-mips-coredump.patch-2.4.23-29
===================================================================
--- patches/gdb/6.5/400-mips-coredump.patch-2.4.23-29	(Revision 771)
+++ patches/gdb/6.5/400-mips-coredump.patch-2.4.23-29	(Arbeitskopie)
@@ -1,28 +0,0 @@
-Sometime around 2.4.22-23, the mips pt_regs.h fields were reordered, breaking
-coredump handling by gdb for current kernels.  Update the hardcoded constants
-to reflect the change.
---- gdb-6.2.1/gdb/mips-linux-tdep.c-orig	2004-10-29 14:23:55.000000000 -0500
-+++ gdb-6.2.1/gdb/mips-linux-tdep.c	2004-10-29 14:26:44.000000000 -0500
-@@ -53,12 +53,22 @@
- 
- #define EF_REG0			6
- #define EF_REG31		37
-+
-+#if 0
- #define EF_LO			38
- #define EF_HI			39
- #define EF_CP0_EPC		40
- #define EF_CP0_BADVADDR		41
- #define EF_CP0_STATUS		42
- #define EF_CP0_CAUSE		43
-+#else
-+#define EF_CP0_STATUS		38
-+#define EF_LO			39
-+#define EF_HI			40
-+#define EF_CP0_BADVADDR		41
-+#define EF_CP0_CAUSE		42
-+#define EF_CP0_EPC		43
-+#endif
- 
- #define EF_SIZE			180
- 
Index: patches/gdb/6.5/100-uclibc-conf.patch
===================================================================
--- patches/gdb/6.5/100-uclibc-conf.patch	(Revision 771)
+++ patches/gdb/6.5/100-uclibc-conf.patch	(Arbeitskopie)
@@ -1,7 +1,8 @@
---- gdb-6.3/bfd/configure.orig	Fri Oct  8 16:53:56 2004
-+++ gdb-6.3/bfd/configure	Sun Feb 27 18:32:58 2005
-@@ -3583,6 +3583,11 @@
-   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+diff -Naur gdb-6.5/bfd/configure gdb-6.5-patched/bfd/configure
+--- gdb-6.5/bfd/configure	2006-04-19 04:06:13.000000000 +0200
++++ gdb-6.5-patched/bfd/configure	2008-06-23 18:24:57.000000000 +0200
+@@ -3580,6 +3580,11 @@
+   lt_cv_deplibs_check_method=pass_all
    ;;
  
 +linux-uclibc*)
@@ -12,9 +13,10 @@
  netbsd* | knetbsd*-gnu)
    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
      lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gdb-6.3/libtool.m4.orig	Wed Jul 21 21:21:41 2004
-+++ gdb-6.3/libtool.m4	Mon Feb 28 00:08:11 2005
-@@ -653,6 +653,11 @@
+diff -Naur gdb-6.5/libtool.m4 gdb-6.5-patched/libtool.m4
+--- gdb-6.5/libtool.m4	2005-12-27 17:37:57.000000000 +0100
++++ gdb-6.5-patched/libtool.m4	2008-06-23 18:24:57.000000000 +0200
+@@ -751,6 +751,11 @@
    fi
    ;;
  
@@ -26,8 +28,9 @@
  newsos6)
    [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
    lt_cv_file_magic_cmd=/usr/bin/file
---- gdb-6.3/ltconfig.orig	Tue Oct  5 15:34:42 2004
-+++ gdb-6.3/ltconfig	Sun Feb 27 18:14:41 2005
+diff -Naur gdb-6.5/ltconfig gdb-6.5-patched/ltconfig
+--- gdb-6.5/ltconfig	2005-07-16 04:36:38.000000000 +0200
++++ gdb-6.5-patched/ltconfig	2008-06-23 18:24:57.000000000 +0200
 @@ -602,7 +602,7 @@
  
  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
@@ -62,9 +65,10 @@
  netbsd*)
    need_lib_prefix=no
    need_version=no
---- gdb-6.3/opcodes/configure.orig	Fri Sep 17 08:13:38 2004
-+++ gdb-6.3/opcodes/configure	Mon Feb 28 00:09:42 2005
-@@ -3595,6 +3595,11 @@
+diff -Naur gdb-6.5/opcodes/configure gdb-6.5-patched/opcodes/configure
+--- gdb-6.5/opcodes/configure	2006-04-19 04:06:15.000000000 +0200
++++ gdb-6.5-patched/opcodes/configure	2008-06-23 18:24:57.000000000 +0200
+@@ -3591,6 +3591,11 @@
    fi
    ;;
  
Index: patches/gdb/6.5/200-uclibc-readline-conf.patch
===================================================================
--- patches/gdb/6.5/200-uclibc-readline-conf.patch	(Revision 771)
+++ patches/gdb/6.5/200-uclibc-readline-conf.patch	(Arbeitskopie)
@@ -1,6 +1,7 @@
---- gdb-6.1.1-dist/readline/configure	2003-05-27 18:29:47.000000000 -0500
-+++ gdb-6.1.1/readline/configure	2004-08-09 14:20:23.000000000 -0500
-@@ -6249,7 +6249,12 @@
+diff -Naur gdb-6.5/readline/configure gdb-6.5-patched/readline/configure
+--- gdb-6.5/readline/configure	2006-05-05 20:26:12.000000000 +0200
++++ gdb-6.5-patched/readline/configure	2008-06-23 18:29:29.000000000 +0200
+@@ -7871,7 +7871,12 @@
  
  
  echo "$as_me:$LINENO: checking for mbstate_t" >&5
Index: patches/gdb/6.5/600-fix-compile-flag-mismatch.patch
===================================================================
--- patches/gdb/6.5/600-fix-compile-flag-mismatch.patch	(Revision 771)
+++ patches/gdb/6.5/600-fix-compile-flag-mismatch.patch	(Arbeitskopie)
@@ -1,6 +1,6 @@
-diff -ur gdb-6.4/gdb/configure gdb-6.4-patched/gdb/configure
---- gdb-6.4/gdb/configure	2005-07-25 10:08:40.000000000 -0500
-+++ gdb-6.4-patched/gdb/configure	2007-02-05 13:22:36.000000000 -0600
+diff -Naur gdb-6.5/gdb/configure gdb-6.5-patched/gdb/configure
+--- gdb-6.5/gdb/configure	2006-06-02 23:10:07.000000000 +0200
++++ gdb-6.5-patched/gdb/configure	2008-06-23 18:39:58.000000000 +0200
 @@ -309,7 +309,7 @@
  # include <unistd.h>
  #endif"
@@ -10,7 +10,7 @@
  ac_subdirs_all="$ac_subdirs_all gdbtk"
  ac_subdirs_all="$ac_subdirs_all multi-ice"
  ac_subdirs_all="$ac_subdirs_all gdbserver"
-@@ -5940,7 +5940,7 @@
+@@ -5939,7 +5939,7 @@
  
  
  
@@ -18,10 +18,10 @@
 +subdirs="$subdirs doc"
  
  
- . $srcdir/configure.host
-diff -ur gdb-6.4/gdb/gdbserver/configure gdb-6.4-patched/gdb/gdbserver/configure
---- gdb-6.4/gdb/gdbserver/configure	2005-09-17 18:14:37.000000000 -0500
-+++ gdb-6.4-patched/gdb/gdbserver/configure	2007-02-05 13:22:58.000000000 -0600
+ # Provide defaults for some variables set by the per-host and per-target
+diff -Naur gdb-6.5/gdb/gdbserver/configure gdb-6.5-patched/gdb/gdbserver/configure
+--- gdb-6.5/gdb/gdbserver/configure	2006-03-15 17:13:28.000000000 +0100
++++ gdb-6.5-patched/gdb/gdbserver/configure	2008-06-23 18:39:58.000000000 +0200
 @@ -1239,7 +1239,7 @@
        ac_cache_corrupted=: ;;
      ,);;
@@ -31,9 +31,9 @@
  	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
-diff -ur gdb-6.4/gdb/testsuite/configure gdb-6.4-patched/gdb/testsuite/configure
---- gdb-6.4/gdb/testsuite/configure	2005-04-11 09:13:12.000000000 -0500
-+++ gdb-6.4-patched/gdb/testsuite/configure	2007-02-05 13:22:36.000000000 -0600
+diff -Naur gdb-6.5/gdb/testsuite/configure gdb-6.5-patched/gdb/testsuite/configure
+--- gdb-6.5/gdb/testsuite/configure	2005-04-11 16:13:12.000000000 +0200
++++ gdb-6.5-patched/gdb/testsuite/configure	2008-06-23 18:39:58.000000000 +0200
 @@ -1248,7 +1248,7 @@
        ac_cache_corrupted=: ;;
      ,);;
@@ -43,27 +43,27 @@
  	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
-diff -ur gdb-6.4/Makefile.in gdb-6.4-patched/Makefile.in
---- gdb-6.4/Makefile.in	2005-12-01 23:29:54.000000000 -0600
-+++ gdb-6.4-patched/Makefile.in	2007-02-05 13:22:36.000000000 -0600
-@@ -383,7 +383,7 @@
+diff -Naur gdb-6.5/Makefile.in gdb-6.5-patched/Makefile.in
+--- gdb-6.5/Makefile.in	2006-06-21 07:14:44.000000000 +0200
++++ gdb-6.5-patched/Makefile.in	2008-06-23 18:39:58.000000000 +0200
+@@ -329,7 +329,7 @@
  # CFLAGS will be just -g.  We want to ensure that TARGET libraries
  # (which we know are built with gcc) are built with optimizations so
  # prepend -O2 when setting CFLAGS_FOR_TARGET.
 -CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
 +CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
  SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
- 
- # If GCC_FOR_TARGET is not overriden on the command line, then this
-diff -ur gdb-6.4/Makefile.tpl gdb-6.4-patched/Makefile.tpl
---- gdb-6.4/Makefile.tpl	2005-10-22 05:37:55.000000000 -0500
-+++ gdb-6.4-patched/Makefile.tpl	2007-02-05 13:22:36.000000000 -0600
-@@ -386,7 +386,7 @@
+ CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+ LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
+diff -Naur gdb-6.5/Makefile.tpl gdb-6.5-patched/Makefile.tpl
+--- gdb-6.5/Makefile.tpl	2006-04-06 23:49:25.000000000 +0200
++++ gdb-6.5-patched/Makefile.tpl	2008-06-23 18:39:58.000000000 +0200
+@@ -332,7 +332,7 @@
  # CFLAGS will be just -g.  We want to ensure that TARGET libraries
  # (which we know are built with gcc) are built with optimizations so
  # prepend -O2 when setting CFLAGS_FOR_TARGET.
 -CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
 +CFLAGS_FOR_TARGET = $(strip $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
  SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
- 
- # If GCC_FOR_TARGET is not overriden on the command line, then this
+ CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+ LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
Index: patches/gdb/6.5/700-fix-missing-initial-value.patch
===================================================================
--- patches/gdb/6.5/700-fix-missing-initial-value.patch	(Revision 0)
+++ patches/gdb/6.5/700-fix-missing-initial-value.patch	(Revision 0)
@@ -0,0 +1,11 @@
+--- gdb-6.5/bfd/ecoff.c	2006-05-03 16:26:40.000000000 +0200
++++ gdb-6.5-patched/bfd/ecoff.c	2008-06-29 23:21:40.000000000 +0200
+@@ -3086,7 +3086,7 @@
+   last_elt = current;
+   for (i = 0; i < orl_count; i++)
+     {
+-      unsigned int hash, rehash;
++      unsigned int hash, rehash = 0;
+ 
+       /* Advance firstreal to the file position of this archive
+ 	 element.  */
Index: patches/gdb/6.5/500-thread-timeout.patch
===================================================================
--- patches/gdb/6.5/500-thread-timeout.patch	(Revision 771)
+++ patches/gdb/6.5/500-thread-timeout.patch	(Arbeitskopie)
@@ -1,5 +1,6 @@
---- gdb-6.5/./gdb/gdbserver/thread-db.c.orig	2006-03-15 08:13:29.000000000 -0800
-+++ gdb-6.5/./gdb/gdbserver/thread-db.c	2008-04-01 21:21:23.000000000 -0700
+diff -Naur gdb-6.5/gdb/gdbserver/thread-db.c gdb-6.5-patched/gdb/gdbserver/thread-db.c
+--- gdb-6.5/gdb/gdbserver/thread-db.c	2006-03-15 17:13:29.000000000 +0100
++++ gdb-6.5-patched/gdb/gdbserver/thread-db.c	2008-06-23 18:37:51.000000000 +0200
 @@ -21,6 +21,7 @@
     Foundation, Inc., 51 Franklin Street, Fifth Floor,
     Boston, MA 02110-1301, USA.  */
@@ -8,7 +9,7 @@
  #include "server.h"
  
  #include "linux-low.h"
-@@ -134,6 +135,7 @@ thread_db_create_event (CORE_ADDR where)
+@@ -134,6 +135,7 @@
    td_event_msg_t msg;
    td_err_e err;
    struct inferior_linux_data *tdata;
@@ -16,7 +17,7 @@
  
    if (debug_threads)
      fprintf (stderr, "Thread creation event.\n");
-@@ -144,7 +146,13 @@ thread_db_create_event (CORE_ADDR where)
+@@ -144,7 +146,13 @@
       In the LinuxThreads implementation, this is safe,
       because all events come from the manager thread
       (except for its own creation, of course).  */
Index: patches/gdb/6.6/700-fix-missing-initial-value.patch
===================================================================
--- patches/gdb/6.6/700-fix-missing-initial-value.patch	(Revision 0)
+++ patches/gdb/6.6/700-fix-missing-initial-value.patch	(Revision 0)
@@ -0,0 +1,11 @@
+--- gdb-6.5/bfd/ecoff.c	2006-05-03 16:26:40.000000000 +0200
++++ gdb-6.5-patched/bfd/ecoff.c	2008-06-29 23:21:40.000000000 +0200
+@@ -3086,7 +3086,7 @@
+   last_elt = current;
+   for (i = 0; i < orl_count; i++)
+     {
+-      unsigned int hash, rehash;
++      unsigned int hash, rehash = 0;
+ 
+       /* Advance firstreal to the file position of this archive
+ 	 element.  */

-- 
Alexander Bigga * linux@bigga.de * www.bigga.de

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]