summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-03-02 02:11:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-08 10:53:09 +0100
commitb3b6cfb48bb61f2efdd5c2325fcce3209b7894c7 (patch)
tree9bd0be6a475e11a53720cf32a3bc25b32e37b6a6
parenta50a01ef7df86570463bba7f4ac59fe04f809243 (diff)
downloadpoky-b3b6cfb48bb61f2efdd5c2325fcce3209b7894c7.tar.gz
gdb: Upgrade 7.8.1 -> 7.9
Refresh patches against new baseline Change-Id: I34c5a284c12f669ff3539a363e5eded15eeeeb23 (From OE-Core rev: 34a77b11350f1f4ccd952f78fd660710b6efaac8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gdb/gdb-7.9.inc (renamed from meta/recipes-devtools/gdb/gdb-7.8.1.inc)4
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.bb (renamed from meta/recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bb)0
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross_7.9.bb (renamed from meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb)0
-rw-r--r--meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff14
-rw-r--r--meta/recipes-devtools/gdb/gdb/renesas-sh-native-support.patch155
-rw-r--r--meta/recipes-devtools/gdb/gdb_7.9.bb (renamed from meta/recipes-devtools/gdb/gdb_7.8.1.bb)0
6 files changed, 85 insertions, 88 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-7.8.1.inc b/meta/recipes-devtools/gdb/gdb-7.9.inc
index 510ea18945..6d5eecb775 100644
--- a/meta/recipes-devtools/gdb/gdb-7.8.1.inc
+++ b/meta/recipes-devtools/gdb/gdb-7.9.inc
@@ -4,6 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
4 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ 4 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
5 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674" 5 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674"
6 6
7SRC_URI[md5sum] = "997492cc3475c96f35ecc8775248c9b1" 7SRC_URI[md5sum] = "8f8ced422fe462a00e0135a643544f17"
8SRC_URI[sha256sum] = "d7a923d876ecfa1cec4c1c79c014c9d8e58783a25855a95cf260275f61990647" 8SRC_URI[sha256sum] = "d282508cb7df0cb8b2cf659032ce1bede7b5725796e3ac90f3cd9d65844a65f2"
9 9
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bb b/meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.bb
index 301035940c..301035940c 100644
--- a/meta/recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bb
+++ b/meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.bb
diff --git a/meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb b/meta/recipes-devtools/gdb/gdb-cross_7.9.bb
index f9da486d7d..f9da486d7d 100644
--- a/meta/recipes-devtools/gdb/gdb-cross_7.8.1.bb
+++ b/meta/recipes-devtools/gdb/gdb-cross_7.9.bb
diff --git a/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff b/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
index 4dfc419c43..16a3aa93d9 100644
--- a/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
+++ b/meta/recipes-devtools/gdb/gdb/gdbserver-cflags-last.diff
@@ -4,22 +4,20 @@ Upstream-Status: Pending
4 gdb/gdbserver/Makefile.in | 4 ++-- 4 gdb/gdbserver/Makefile.in | 4 ++--
5 1 file changed, 2 insertions(+), 2 deletions(-) 5 1 file changed, 2 insertions(+), 2 deletions(-)
6 6
7Index: gdb/gdbserver/Makefile.in
8===================================================================
7--- gdb/gdbserver/Makefile.in.orig 9--- gdb/gdbserver/Makefile.in.orig
8+++ gdb/gdbserver/Makefile.in 10+++ gdb/gdbserver/Makefile.in
9@@ -118,14 +118,14 @@ WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_C 11@@ -131,10 +131,10 @@ CFLAGS = @CFLAGS@
10 # CFLAGS is specifically reserved for setting from the command line 12 CPPFLAGS = @CPPFLAGS@
11 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
12 CFLAGS = @CFLAGS@
13 13
14 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. 14 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
15-INTERNAL_CFLAGS_BASE = ${CFLAGS} ${GLOBAL_CFLAGS} \ 15-INTERNAL_CFLAGS_BASE = ${CFLAGS} ${GLOBAL_CFLAGS} \
16+INTERNAL_CFLAGS_BASE = ${GLOBAL_CFLAGS} \ 16+INTERNAL_CFLAGS_BASE = ${GLOBAL_CFLAGS} \
17 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} 17 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
18 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS) 18 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
19-INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER 19-INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
20+INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) ${CFLAGS} -DGDBSERVER 20+INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) ${CFLAGS} -DGDBSERVER
21 21
22 # LDFLAGS is specifically reserved for setting from the command line 22 # LDFLAGS is specifically reserved for setting from the command line
23 # when running make. 23 # when running make.
24 LDFLAGS = @LDFLAGS@
25 INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
diff --git a/meta/recipes-devtools/gdb/gdb/renesas-sh-native-support.patch b/meta/recipes-devtools/gdb/gdb/renesas-sh-native-support.patch
index 15ff62013e..2259c6f7ee 100644
--- a/meta/recipes-devtools/gdb/gdb/renesas-sh-native-support.patch
+++ b/meta/recipes-devtools/gdb/gdb/renesas-sh-native-support.patch
@@ -20,34 +20,34 @@ Last-Update: <2011-11-17>
20Upstream-Status: Pending 20Upstream-Status: Pending
21Signed-off-by: Khem Raj <raj.khem@gmail.com> 21Signed-off-by: Khem Raj <raj.khem@gmail.com>
22 22
23Index: gdb-7.5/gdb/configure.host 23Index: gdb-7.9/gdb/configure.host
24=================================================================== 24===================================================================
25--- gdb-7.5.orig/gdb/configure.host 2012-05-30 12:41:34.000000000 -0700 25--- gdb-7.9.orig/gdb/configure.host
26+++ gdb-7.5/gdb/configure.host 2012-09-19 14:40:42.974609772 -0700 26+++ gdb-7.9/gdb/configure.host
27@@ -140,6 +140,7 @@ 27@@ -150,6 +150,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
28 28
29 s390*-*-*) gdb_host=s390 ;; 29 s390*-*-linux*) gdb_host=linux ;;
30 30
31+sh*-*-linux*) gdb_host=linux ;; 31+sh*-*-linux*) gdb_host=linux ;;
32 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) 32 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
33 gdb_host=nbsd ;; 33 gdb_host=nbsd ;;
34 sh*-*-openbsd*) gdb_host=nbsd ;; 34 sh*-*-openbsd*) gdb_host=nbsd ;;
35Index: gdb-7.5/gdb/Makefile.in 35Index: gdb-7.9/gdb/Makefile.in
36=================================================================== 36===================================================================
37--- gdb-7.5.orig/gdb/Makefile.in 2012-07-02 08:29:33.000000000 -0700 37--- gdb-7.9.orig/gdb/Makefile.in
38+++ gdb-7.5/gdb/Makefile.in 2012-09-19 14:40:42.974609772 -0700 38+++ gdb-7.9/gdb/Makefile.in
39@@ -1493,6 +1493,7 @@ 39@@ -1707,6 +1707,7 @@ ALLDEPFILES = \
40 score-tdep.c \ 40 score-tdep.c \
41 ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \ 41 ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \
42 sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \ 42 sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \
43+ sh-linux-tdep.c sh-linux-nat.c \ 43+ sh-linux-tdep.c sh-linux-nat.c \
44 sol2-tdep.c \ 44 sol2-tdep.c \
45 solib-irix.c solib-svr4.c solib-sunos.c \ 45 solib-svr4.c \
46 sparc-linux-nat.c sparc-linux-tdep.c \ 46 sparc-linux-nat.c sparc-linux-tdep.c \
47Index: gdb-7.5/gdb/sh-linux-tdep.c 47Index: gdb-7.9/gdb/sh-linux-tdep.c
48=================================================================== 48===================================================================
49--- gdb-7.5.orig/gdb/sh-linux-tdep.c 2012-05-07 06:17:29.000000000 -0700 49--- gdb-7.9.orig/gdb/sh-linux-tdep.c
50+++ gdb-7.5/gdb/sh-linux-tdep.c 2012-09-19 14:46:50.610623784 -0700 50+++ gdb-7.9/gdb/sh-linux-tdep.c
51@@ -18,14 +18,37 @@ 51@@ -18,14 +18,37 @@
52 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 52 along with this program. If not, see <http://www.gnu.org/licenses/>. */
53 53
@@ -86,7 +86,7 @@ Index: gdb-7.5/gdb/sh-linux-tdep.c
86 #include "glibc-tdep.h" 86 #include "glibc-tdep.h"
87 #include "sh-tdep.h" 87 #include "sh-tdep.h"
88 #include "linux-tdep.h" 88 #include "linux-tdep.h"
89@@ -180,9 +203,505 @@ 89@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_si
90 sh_linux_rt_sigreturn_init 90 sh_linux_rt_sigreturn_init
91 }; 91 };
92 92
@@ -592,10 +592,10 @@ Index: gdb-7.5/gdb/sh-linux-tdep.c
592 linux_init_abi (info, gdbarch); 592 linux_init_abi (info, gdbarch);
593 593
594 /* GNU/Linux uses SVR4-style shared libraries. */ 594 /* GNU/Linux uses SVR4-style shared libraries. */
595Index: gdb-7.5/gdb/sh-tdep.h 595Index: gdb-7.9/gdb/sh-tdep.h
596=================================================================== 596===================================================================
597--- gdb-7.5.orig/gdb/sh-tdep.h 2012-03-01 15:55:40.000000000 -0800 597--- gdb-7.9.orig/gdb/sh-tdep.h
598+++ gdb-7.5/gdb/sh-tdep.h 2012-09-19 14:48:32.406627602 -0700 598+++ gdb-7.9/gdb/sh-tdep.h
599@@ -21,6 +21,12 @@ 599@@ -21,6 +21,12 @@
600 600
601 /* Contributed by Steve Chamberlain sac@cygnus.com. */ 601 /* Contributed by Steve Chamberlain sac@cygnus.com. */
@@ -609,7 +609,7 @@ Index: gdb-7.5/gdb/sh-tdep.h
609 /* Registers for all SH variants. Used also by sh3-rom.c. */ 609 /* Registers for all SH variants. Used also by sh3-rom.c. */
610 enum 610 enum
611 { 611 {
612@@ -29,6 +35,7 @@ 612@@ -29,6 +35,7 @@ enum
613 ARG0_REGNUM = 4, 613 ARG0_REGNUM = 4,
614 ARGLAST_REGNUM = 7, 614 ARGLAST_REGNUM = 7,
615 FP_REGNUM = 14, 615 FP_REGNUM = 14,
@@ -617,7 +617,7 @@ Index: gdb-7.5/gdb/sh-tdep.h
617 PC_REGNUM = 16, 617 PC_REGNUM = 16,
618 PR_REGNUM = 17, 618 PR_REGNUM = 17,
619 GBR_REGNUM = 18, 619 GBR_REGNUM = 18,
620@@ -81,6 +88,24 @@ 620@@ -81,6 +88,24 @@ enum
621 FV0_REGNUM = 76, 621 FV0_REGNUM = 76,
622 FV_LAST_REGNUM = 79 622 FV_LAST_REGNUM = 79
623 }; 623 };
@@ -642,7 +642,7 @@ Index: gdb-7.5/gdb/sh-tdep.h
642 642
643 /* This structure describes a register in a core-file. */ 643 /* This structure describes a register in a core-file. */
644 struct sh_corefile_regmap 644 struct sh_corefile_regmap
645@@ -89,8 +114,32 @@ 645@@ -89,8 +114,32 @@ struct sh_corefile_regmap
646 unsigned int offset; 646 unsigned int offset;
647 }; 647 };
648 648
@@ -675,10 +675,10 @@ Index: gdb-7.5/gdb/sh-tdep.h
675 /* Non-NULL when debugging from a core file. Provides the offset 675 /* Non-NULL when debugging from a core file. Provides the offset
676 where each general-purpose register is stored inside the associated 676 where each general-purpose register is stored inside the associated
677 core file section. */ 677 core file section. */
678Index: gdb-7.5/gdb/sh-linux-nat.c 678Index: gdb-7.9/gdb/sh-linux-nat.c
679=================================================================== 679===================================================================
680--- /dev/null 1970-01-01 00:00:00.000000000 +0000 680--- /dev/null
681+++ gdb-7.5/gdb/sh-linux-nat.c 2012-09-19 14:40:42.978609771 -0700 681+++ gdb-7.9/gdb/sh-linux-nat.c
682@@ -0,0 +1,269 @@ 682@@ -0,0 +1,269 @@
683+/* Low level SH interface to ptrace, for GDB when running native. 683+/* Low level SH interface to ptrace, for GDB when running native.
684+ Copyright (C) 2002, 2004 Free Software Foundation, Inc. 684+ Copyright (C) 2002, 2004 Free Software Foundation, Inc.
@@ -949,10 +949,10 @@ Index: gdb-7.5/gdb/sh-linux-nat.c
949+ /* Register the target. */ 949+ /* Register the target. */
950+ linux_nat_add_target (t); 950+ linux_nat_add_target (t);
951+} 951+}
952Index: gdb-7.5/gdb/sh-tdep.c 952Index: gdb-7.9/gdb/sh-tdep.c
953=================================================================== 953===================================================================
954--- gdb-7.5.orig/gdb/sh-tdep.c 2012-06-08 07:24:57.000000000 -0700 954--- gdb-7.9.orig/gdb/sh-tdep.c
955+++ gdb-7.5/gdb/sh-tdep.c 2012-09-19 14:45:09.770619943 -0700 955+++ gdb-7.9/gdb/sh-tdep.c
956@@ -21,6 +21,9 @@ 956@@ -21,6 +21,9 @@
957 sac@cygnus.com. */ 957 sac@cygnus.com. */
958 958
@@ -963,7 +963,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
963 #include "frame.h" 963 #include "frame.h"
964 #include "frame-base.h" 964 #include "frame-base.h"
965 #include "frame-unwind.h" 965 #include "frame-unwind.h"
966@@ -37,6 +40,7 @@ 966@@ -35,6 +38,7 @@
967 #include "arch-utils.h" 967 #include "arch-utils.h"
968 #include "floatformat.h" 968 #include "floatformat.h"
969 #include "regcache.h" 969 #include "regcache.h"
@@ -971,7 +971,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
971 #include "doublest.h" 971 #include "doublest.h"
972 #include "osabi.h" 972 #include "osabi.h"
973 #include "reggroups.h" 973 #include "reggroups.h"
974@@ -69,23 +73,6 @@ 974@@ -67,23 +71,6 @@ static const char *const sh_cc_enum[] =
975 975
976 static const char *sh_active_calling_convention = sh_cc_gcc; 976 static const char *sh_active_calling_convention = sh_cc_gcc;
977 977
@@ -995,7 +995,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
995 static int 995 static int
996 sh_is_renesas_calling_convention (struct type *func_type) 996 sh_is_renesas_calling_convention (struct type *func_type)
997 { 997 {
998@@ -1045,7 +1032,7 @@ 998@@ -1043,7 +1030,7 @@ sh_treat_as_flt_p (struct type *type)
999 return 0; 999 return 0;
1000 /* Otherwise if the type of that member is float, the whole type is 1000 /* Otherwise if the type of that member is float, the whole type is
1001 treated as float. */ 1001 treated as float. */
@@ -1004,7 +1004,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1004 return 1; 1004 return 1;
1005 /* Otherwise it's not treated as float. */ 1005 /* Otherwise it's not treated as float. */
1006 return 0; 1006 return 0;
1007@@ -1095,7 +1082,7 @@ 1007@@ -1093,7 +1080,7 @@ sh_push_dummy_call_fpu (struct gdbarch *
1008 in four registers available. Loop thru args from first to last. */ 1008 in four registers available. Loop thru args from first to last. */
1009 for (argnum = 0; argnum < nargs; argnum++) 1009 for (argnum = 0; argnum < nargs; argnum++)
1010 { 1010 {
@@ -1013,7 +1013,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1013 len = TYPE_LENGTH (type); 1013 len = TYPE_LENGTH (type);
1014 val = sh_justify_value_in_reg (gdbarch, args[argnum], len); 1014 val = sh_justify_value_in_reg (gdbarch, args[argnum], len);
1015 1015
1016@@ -1809,7 +1796,7 @@ 1016@@ -1821,7 +1808,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch
1017 reg->how = DWARF2_FRAME_REG_UNDEFINED; 1017 reg->how = DWARF2_FRAME_REG_UNDEFINED;
1018 } 1018 }
1019 1019
@@ -1022,7 +1022,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1022 sh_alloc_frame_cache (void) 1022 sh_alloc_frame_cache (void)
1023 { 1023 {
1024 struct sh_frame_cache *cache; 1024 struct sh_frame_cache *cache;
1025@@ -1836,7 +1823,7 @@ 1025@@ -1848,7 +1835,7 @@ sh_alloc_frame_cache (void)
1026 return cache; 1026 return cache;
1027 } 1027 }
1028 1028
@@ -1031,7 +1031,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1031 sh_frame_cache (struct frame_info *this_frame, void **this_cache) 1031 sh_frame_cache (struct frame_info *this_frame, void **this_cache)
1032 { 1032 {
1033 struct gdbarch *gdbarch = get_frame_arch (this_frame); 1033 struct gdbarch *gdbarch = get_frame_arch (this_frame);
1034@@ -1903,9 +1890,9 @@ 1034@@ -1915,9 +1902,9 @@ sh_frame_cache (struct frame_info *this_
1035 return cache; 1035 return cache;
1036 } 1036 }
1037 1037
@@ -1044,7 +1044,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1044 { 1044 {
1045 struct gdbarch *gdbarch = get_frame_arch (this_frame); 1045 struct gdbarch *gdbarch = get_frame_arch (this_frame);
1046 struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache); 1046 struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache);
1047@@ -1919,7 +1906,7 @@ 1047@@ -1931,7 +1918,7 @@ sh_frame_prev_register (struct frame_inf
1048 the current frame. Frob regnum so that we pull the value from 1048 the current frame. Frob regnum so that we pull the value from
1049 the correct place. */ 1049 the correct place. */
1050 if (regnum == gdbarch_pc_regnum (gdbarch)) 1050 if (regnum == gdbarch_pc_regnum (gdbarch))
@@ -1053,7 +1053,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1053 1053
1054 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1) 1054 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1)
1055 return frame_unwind_got_memory (this_frame, regnum, 1055 return frame_unwind_got_memory (this_frame, regnum,
1056@@ -2225,8 +2212,8 @@ 1056@@ -2237,8 +2224,8 @@ sh_return_in_first_hidden_param_p (struc
1057 static struct gdbarch * 1057 static struct gdbarch *
1058 sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 1058 sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
1059 { 1059 {
@@ -1063,8 +1063,8 @@ Index: gdb-7.5/gdb/sh-tdep.c
1063 1063
1064 /* SH5 is handled entirely in sh64-tdep.c. */ 1064 /* SH5 is handled entirely in sh64-tdep.c. */
1065 if (info.bfd_arch_info->mach == bfd_mach_sh5) 1065 if (info.bfd_arch_info->mach == bfd_mach_sh5)
1066@@ -2242,6 +2229,18 @@ 1066@@ -2254,6 +2241,18 @@ sh_gdbarch_init (struct gdbarch_info inf
1067 tdep = XZALLOC (struct gdbarch_tdep); 1067 tdep = XCNEW (struct gdbarch_tdep);
1068 gdbarch = gdbarch_alloc (&info, tdep); 1068 gdbarch = gdbarch_alloc (&info, tdep);
1069 1069
1070+ /* General-purpose registers. */ 1070+ /* General-purpose registers. */
@@ -1082,7 +1082,7 @@ Index: gdb-7.5/gdb/sh-tdep.c
1082 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT); 1082 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
1083 set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT); 1083 set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
1084 set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); 1084 set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
1085@@ -2389,10 +2388,11 @@ 1085@@ -2404,10 +2403,11 @@ sh_gdbarch_init (struct gdbarch_info inf
1086 break; 1086 break;
1087 } 1087 }
1088 1088
@@ -1095,10 +1095,10 @@ Index: gdb-7.5/gdb/sh-tdep.c
1095 frame_unwind_append_unwinder (gdbarch, &sh_stub_unwind); 1095 frame_unwind_append_unwinder (gdbarch, &sh_stub_unwind);
1096 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind); 1096 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind);
1097 1097
1098Index: gdb-7.5/gdb/testsuite/gdb.asm/sh-linux.inc 1098Index: gdb-7.9/gdb/testsuite/gdb.asm/sh-linux.inc
1099=================================================================== 1099===================================================================
1100--- /dev/null 1970-01-01 00:00:00.000000000 +0000 1100--- /dev/null
1101+++ gdb-7.5/gdb/testsuite/gdb.asm/sh-linux.inc 2012-09-19 14:40:42.978609771 -0700 1101+++ gdb-7.9/gdb/testsuite/gdb.asm/sh-linux.inc
1102@@ -0,0 +1,78 @@ 1102@@ -0,0 +1,78 @@
1103+# You'll find a bunch of nop opcodes in the below macros. They are 1103+# You'll find a bunch of nop opcodes in the below macros. They are
1104+# there to keep the code correctly aligned. Be careful to maintain 1104+# there to keep the code correctly aligned. Be careful to maintain
@@ -1178,10 +1178,10 @@ Index: gdb-7.5/gdb/testsuite/gdb.asm/sh-linux.inc
1178+\name: 1178+\name:
1179+ .long \value 1179+ .long \value
1180+ .endm 1180+ .endm
1181Index: gdb-7.5/gdb/testsuite/gdb.asm/sh.inc 1181Index: gdb-7.9/gdb/testsuite/gdb.asm/sh.inc
1182=================================================================== 1182===================================================================
1183--- gdb-7.5.orig/gdb/testsuite/gdb.asm/sh.inc 2012-04-16 01:02:09.000000000 -0700 1183--- gdb-7.9.orig/gdb/testsuite/gdb.asm/sh.inc
1184+++ gdb-7.5/gdb/testsuite/gdb.asm/sh.inc 2012-09-19 14:40:42.978609771 -0700 1184+++ gdb-7.9/gdb/testsuite/gdb.asm/sh.inc
1185@@ -40,9 +40,8 @@ 1185@@ -40,9 +40,8 @@
1186 mov.l .Lconst\@,r1 1186 mov.l .Lconst\@,r1
1187 bra .Lafterconst\@ 1187 bra .Lafterconst\@
@@ -1193,11 +1193,11 @@ Index: gdb-7.5/gdb/testsuite/gdb.asm/sh.inc
1193 .long \subr 1193 .long \subr
1194 .align 1 1194 .align 1
1195 .Lafterconst\@: 1195 .Lafterconst\@:
1196Index: gdb-7.5/gdb/testsuite/gdb.asm/asm-source.exp 1196Index: gdb-7.9/gdb/testsuite/gdb.asm/asm-source.exp
1197=================================================================== 1197===================================================================
1198--- gdb-7.5.orig/gdb/testsuite/gdb.asm/asm-source.exp 2012-06-25 13:11:43.000000000 -0700 1198--- gdb-7.9.orig/gdb/testsuite/gdb.asm/asm-source.exp
1199+++ gdb-7.5/gdb/testsuite/gdb.asm/asm-source.exp 2012-09-19 14:40:42.978609771 -0700 1199+++ gdb-7.9/gdb/testsuite/gdb.asm/asm-source.exp
1200@@ -108,6 +108,11 @@ 1200@@ -113,6 +113,11 @@ switch -glob -- [istarget] {
1201 append link-flags " -m elf32ppc" 1201 append link-flags " -m elf32ppc"
1202 } 1202 }
1203 } 1203 }
@@ -1209,25 +1209,24 @@ Index: gdb-7.5/gdb/testsuite/gdb.asm/asm-source.exp
1209 "sh*-*-*" { 1209 "sh*-*-*" {
1210 set asm-arch sh 1210 set asm-arch sh
1211 set debug-flags "-gdwarf-2" 1211 set debug-flags "-gdwarf-2"
1212Index: gdb-7.5/gdb/testsuite/gdb.base/sigall.c 1212Index: gdb-7.9/gdb/testsuite/gdb.base/sigall.c
1213=================================================================== 1213===================================================================
1214--- gdb-7.5.orig/gdb/testsuite/gdb.base/sigall.c 2012-02-28 02:24:15.000000000 -0800 1214--- gdb-7.9.orig/gdb/testsuite/gdb.base/sigall.c
1215+++ gdb-7.5/gdb/testsuite/gdb.base/sigall.c 2012-09-19 14:42:02.202612808 -0700 1215+++ gdb-7.9/gdb/testsuite/gdb.base/sigall.c
1216@@ -5,6 +5,10 @@ 1216@@ -1,6 +1,9 @@
1217 /* Signal handlers, we set breakpoints in them to make sure that the 1217 #include <signal.h>
1218 signals really get delivered. */ 1218 #include <unistd.h>
1219 1219
1220+#ifdef __sh__ 1220+#ifdef __sh__
1221+#define signal(a,b) /* Signals not supported on this target - make them go away */ 1221+#define signal(a,b) /* Signals not supported on this target - make them go away */
1222+#endif 1222+#endif
1223+ 1223
1224 #ifdef PROTOTYPES 1224 /* Signal handlers, we set breakpoints in them to make sure that the
1225 void 1225 signals really get delivered. */
1226 handle_ABRT (int sig) 1226Index: gdb-7.9/gdb/testsuite/gdb.base/signals.c
1227Index: gdb-7.5/gdb/testsuite/gdb.base/signals.c
1228=================================================================== 1227===================================================================
1229--- gdb-7.5.orig/gdb/testsuite/gdb.base/signals.c 2012-02-28 02:24:15.000000000 -0800 1228--- gdb-7.9.orig/gdb/testsuite/gdb.base/signals.c
1230+++ gdb-7.5/gdb/testsuite/gdb.base/signals.c 2012-09-19 14:43:22.034615831 -0700 1229+++ gdb-7.9/gdb/testsuite/gdb.base/signals.c
1231@@ -3,6 +3,10 @@ 1230@@ -3,6 +3,10 @@
1232 #include <signal.h> 1231 #include <signal.h>
1233 #include <unistd.h> 1232 #include <unistd.h>
@@ -1239,10 +1238,10 @@ Index: gdb-7.5/gdb/testsuite/gdb.base/signals.c
1239 1238
1240 static int count = 0; 1239 static int count = 0;
1241 1240
1242Index: gdb-7.5/gdb/testsuite/gdb.base/annota1.c 1241Index: gdb-7.9/gdb/testsuite/gdb.base/annota1.c
1243=================================================================== 1242===================================================================
1244--- gdb-7.5.orig/gdb/testsuite/gdb.base/annota1.c 2012-02-28 14:40:48.000000000 -0800 1243--- gdb-7.9.orig/gdb/testsuite/gdb.base/annota1.c
1245+++ gdb-7.5/gdb/testsuite/gdb.base/annota1.c 2012-09-19 14:42:42.074614308 -0700 1244+++ gdb-7.9/gdb/testsuite/gdb.base/annota1.c
1246@@ -1,6 +1,9 @@ 1245@@ -1,6 +1,9 @@
1247 #include <stdio.h> 1246 #include <stdio.h>
1248 #include <signal.h> 1247 #include <signal.h>
@@ -1251,12 +1250,12 @@ Index: gdb-7.5/gdb/testsuite/gdb.base/annota1.c
1251+#define signal(a,b) /* Signals not supported on this target - make them go away */ 1250+#define signal(a,b) /* Signals not supported on this target - make them go away */
1252+#endif 1251+#endif
1253 1252
1254 #ifdef PROTOTYPES
1255 void 1253 void
1256Index: gdb-7.5/gdb/testsuite/gdb.base/annota3.c 1254 handle_USR1 (int sig)
1255Index: gdb-7.9/gdb/testsuite/gdb.base/annota3.c
1257=================================================================== 1256===================================================================
1258--- gdb-7.5.orig/gdb/testsuite/gdb.base/annota3.c 2012-02-28 14:40:48.000000000 -0800 1257--- gdb-7.9.orig/gdb/testsuite/gdb.base/annota3.c
1259+++ gdb-7.5/gdb/testsuite/gdb.base/annota3.c 2012-09-19 14:43:54.410617081 -0700 1258+++ gdb-7.9/gdb/testsuite/gdb.base/annota3.c
1260@@ -1,6 +1,10 @@ 1259@@ -1,6 +1,10 @@
1261 #include <stdio.h> 1260 #include <stdio.h>
1262 #include <signal.h> 1261 #include <signal.h>
@@ -1266,12 +1265,12 @@ Index: gdb-7.5/gdb/testsuite/gdb.base/annota3.c
1266+#endif 1265+#endif
1267+ 1266+
1268 1267
1269 #ifdef PROTOTYPES
1270 void 1268 void
1271Index: gdb-7.5/gdb/config/sh/xm-linux.h 1269 handle_USR1 (int sig)
1270Index: gdb-7.9/gdb/config/sh/xm-linux.h
1272=================================================================== 1271===================================================================
1273--- /dev/null 1970-01-01 00:00:00.000000000 +0000 1272--- /dev/null
1274+++ gdb-7.5/gdb/config/sh/xm-linux.h 2012-09-19 14:40:42.994609807 -0700 1273+++ gdb-7.9/gdb/config/sh/xm-linux.h
1275@@ -0,0 +1,32 @@ 1274@@ -0,0 +1,32 @@
1276+/* Native support for GNU/Linux, for GDB, the GNU debugger. 1275+/* Native support for GNU/Linux, for GDB, the GNU debugger.
1277+ Copyright (C) 2000 Free Software Foundation, Inc. 1276+ Copyright (C) 2000 Free Software Foundation, Inc.
@@ -1305,10 +1304,10 @@ Index: gdb-7.5/gdb/config/sh/xm-linux.h
1305+#include <unistd.h> 1304+#include <unistd.h>
1306+ 1305+
1307+#endif /* #ifndef XM_LINUX_H */ 1306+#endif /* #ifndef XM_LINUX_H */
1308Index: gdb-7.5/gdb/config/sh/nm-linux.h 1307Index: gdb-7.9/gdb/config/sh/nm-linux.h
1309=================================================================== 1308===================================================================
1310--- /dev/null 1970-01-01 00:00:00.000000000 +0000 1309--- /dev/null
1311+++ gdb-7.5/gdb/config/sh/nm-linux.h 2012-09-19 14:40:42.994609807 -0700 1310+++ gdb-7.9/gdb/config/sh/nm-linux.h
1312@@ -0,0 +1,54 @@ 1311@@ -0,0 +1,54 @@
1313+/* Native-dependent definitions for SuperH running Linux, for GDB. 1312+/* Native-dependent definitions for SuperH running Linux, for GDB.
1314+ Copyright 2004 Free Software Foundation, Inc. 1313+ Copyright 2004 Free Software Foundation, Inc.
@@ -1364,10 +1363,10 @@ Index: gdb-7.5/gdb/config/sh/nm-linux.h
1364+#define CANNOT_STORE_REGISTER(regno) cannot_store_register (regno) 1363+#define CANNOT_STORE_REGISTER(regno) cannot_store_register (regno)
1365+ 1364+
1366+#endif /* NM_LINUX_H */ 1365+#endif /* NM_LINUX_H */
1367Index: gdb-7.5/gdb/config/sh/linux.mh 1366Index: gdb-7.9/gdb/config/sh/linux.mh
1368=================================================================== 1367===================================================================
1369--- /dev/null 1970-01-01 00:00:00.000000000 +0000 1368--- /dev/null
1370+++ gdb-7.5/gdb/config/sh/linux.mh 2012-09-19 14:40:42.994609807 -0700 1369+++ gdb-7.9/gdb/config/sh/linux.mh
1371@@ -0,0 +1,8 @@ 1370@@ -0,0 +1,8 @@
1372+# Host: Renesas Super-H running GNU/Linux 1371+# Host: Renesas Super-H running GNU/Linux
1373+NAT_FILE= config/sh/nm-linux.h 1372+NAT_FILE= config/sh/nm-linux.h
diff --git a/meta/recipes-devtools/gdb/gdb_7.8.1.bb b/meta/recipes-devtools/gdb/gdb_7.9.bb
index 1abc9d8e76..1abc9d8e76 100644
--- a/meta/recipes-devtools/gdb/gdb_7.8.1.bb
+++ b/meta/recipes-devtools/gdb/gdb_7.9.bb