summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch')
-rw-r--r--meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch42
1 files changed, 21 insertions, 21 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
index 8809e6f8b2..d0c15f6289 100644
--- a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
+++ b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
@@ -1,4 +1,4 @@
1From 8c5fe58c5a0044ddb517a41b277ed27fb3d3bedc Mon Sep 17 00:00:00 2001 1From 6649e2cccfb11dec076abb02eae0afab95614829 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 02:31:12 +0000 3Date: Mon, 2 Mar 2015 02:31:12 +0000
4Subject: [PATCH 05/10] Add support for Renesas SH (sh4) architecture. 4Subject: [PATCH 05/10] Add support for Renesas SH (sh4) architecture.
@@ -27,10 +27,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
27 11 files changed, 617 insertions(+), 29 deletions(-) 27 11 files changed, 617 insertions(+), 29 deletions(-)
28 28
29diff --git a/gdb/Makefile.in b/gdb/Makefile.in 29diff --git a/gdb/Makefile.in b/gdb/Makefile.in
30index ec2af52..df8e84d 100644 30index 7b2df86878..10f1266fe3 100644
31--- a/gdb/Makefile.in 31--- a/gdb/Makefile.in
32+++ b/gdb/Makefile.in 32+++ b/gdb/Makefile.in
33@@ -1736,6 +1736,7 @@ ALLDEPFILES = \ 33@@ -1750,6 +1750,7 @@ ALLDEPFILES = \
34 score-tdep.c \ 34 score-tdep.c \
35 ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \ 35 ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \
36 sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \ 36 sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \
@@ -39,7 +39,7 @@ index ec2af52..df8e84d 100644
39 solib-svr4.c \ 39 solib-svr4.c \
40 sparc-linux-nat.c sparc-linux-tdep.c \ 40 sparc-linux-nat.c sparc-linux-tdep.c \
41diff --git a/gdb/configure.host b/gdb/configure.host 41diff --git a/gdb/configure.host b/gdb/configure.host
42index ef265eb..322a1e2 100644 42index ef265ebe29..322a1e2c67 100644
43--- a/gdb/configure.host 43--- a/gdb/configure.host
44+++ b/gdb/configure.host 44+++ b/gdb/configure.host
45@@ -149,6 +149,7 @@ powerpc*-*-linux*) gdb_host=linux ;; 45@@ -149,6 +149,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
@@ -51,7 +51,7 @@ index ef265eb..322a1e2 100644
51 gdb_host=nbsd ;; 51 gdb_host=nbsd ;;
52 sh*-*-openbsd*) gdb_host=nbsd ;; 52 sh*-*-openbsd*) gdb_host=nbsd ;;
53diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c 53diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
54index 2418d25..ac8ea9e 100644 54index 2418d25010..ac8ea9e2a4 100644
55--- a/gdb/sh-linux-tdep.c 55--- a/gdb/sh-linux-tdep.c
56+++ b/gdb/sh-linux-tdep.c 56+++ b/gdb/sh-linux-tdep.c
57@@ -18,14 +18,37 @@ 57@@ -18,14 +18,37 @@
@@ -599,7 +599,7 @@ index 2418d25..ac8ea9e 100644
599 599
600 /* GNU/Linux uses SVR4-style shared libraries. */ 600 /* GNU/Linux uses SVR4-style shared libraries. */
601diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c 601diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
602index 336b48e..847b271 100644 602index 694f5f742d..8d54df7a1a 100644
603--- a/gdb/sh-tdep.c 603--- a/gdb/sh-tdep.c
604+++ b/gdb/sh-tdep.c 604+++ b/gdb/sh-tdep.c
605@@ -21,6 +21,9 @@ 605@@ -21,6 +21,9 @@
@@ -662,7 +662,7 @@ index 336b48e..847b271 100644
662 len = TYPE_LENGTH (type); 662 len = TYPE_LENGTH (type);
663 val = sh_justify_value_in_reg (gdbarch, args[argnum], len); 663 val = sh_justify_value_in_reg (gdbarch, args[argnum], len);
664 664
665@@ -1821,7 +1808,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum, 665@@ -1819,7 +1806,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum,
666 reg->how = DWARF2_FRAME_REG_UNDEFINED; 666 reg->how = DWARF2_FRAME_REG_UNDEFINED;
667 } 667 }
668 668
@@ -671,7 +671,7 @@ index 336b48e..847b271 100644
671 sh_alloc_frame_cache (void) 671 sh_alloc_frame_cache (void)
672 { 672 {
673 struct sh_frame_cache *cache; 673 struct sh_frame_cache *cache;
674@@ -1848,7 +1835,7 @@ sh_alloc_frame_cache (void) 674@@ -1846,7 +1833,7 @@ sh_alloc_frame_cache (void)
675 return cache; 675 return cache;
676 } 676 }
677 677
@@ -680,7 +680,7 @@ index 336b48e..847b271 100644
680 sh_frame_cache (struct frame_info *this_frame, void **this_cache) 680 sh_frame_cache (struct frame_info *this_frame, void **this_cache)
681 { 681 {
682 struct gdbarch *gdbarch = get_frame_arch (this_frame); 682 struct gdbarch *gdbarch = get_frame_arch (this_frame);
683@@ -1915,9 +1902,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache) 683@@ -1913,9 +1900,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache)
684 return cache; 684 return cache;
685 } 685 }
686 686
@@ -693,7 +693,7 @@ index 336b48e..847b271 100644
693 { 693 {
694 struct gdbarch *gdbarch = get_frame_arch (this_frame); 694 struct gdbarch *gdbarch = get_frame_arch (this_frame);
695 struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache); 695 struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache);
696@@ -1931,7 +1918,7 @@ sh_frame_prev_register (struct frame_info *this_frame, 696@@ -1929,7 +1916,7 @@ sh_frame_prev_register (struct frame_info *this_frame,
697 the current frame. Frob regnum so that we pull the value from 697 the current frame. Frob regnum so that we pull the value from
698 the correct place. */ 698 the correct place. */
699 if (regnum == gdbarch_pc_regnum (gdbarch)) 699 if (regnum == gdbarch_pc_regnum (gdbarch))
@@ -702,7 +702,7 @@ index 336b48e..847b271 100644
702 702
703 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1) 703 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1)
704 return frame_unwind_got_memory (this_frame, regnum, 704 return frame_unwind_got_memory (this_frame, regnum,
705@@ -2240,8 +2227,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch, 705@@ -2238,8 +2225,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
706 static struct gdbarch * 706 static struct gdbarch *
707 sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 707 sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
708 { 708 {
@@ -712,7 +712,7 @@ index 336b48e..847b271 100644
712 712
713 /* SH5 is handled entirely in sh64-tdep.c. */ 713 /* SH5 is handled entirely in sh64-tdep.c. */
714 if (info.bfd_arch_info->mach == bfd_mach_sh5) 714 if (info.bfd_arch_info->mach == bfd_mach_sh5)
715@@ -2257,6 +2244,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 715@@ -2255,6 +2242,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
716 tdep = XCNEW (struct gdbarch_tdep); 716 tdep = XCNEW (struct gdbarch_tdep);
717 gdbarch = gdbarch_alloc (&info, tdep); 717 gdbarch = gdbarch_alloc (&info, tdep);
718 718
@@ -731,7 +731,7 @@ index 336b48e..847b271 100644
731 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT); 731 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
732 set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT); 732 set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
733 set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); 733 set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
734@@ -2407,10 +2406,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 734@@ -2405,10 +2404,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
735 break; 735 break;
736 } 736 }
737 737
@@ -745,7 +745,7 @@ index 336b48e..847b271 100644
745 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind); 745 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind);
746 746
747diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h 747diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h
748index 666968f..62c65b5 100644 748index 666968f787..62c65b55ea 100644
749--- a/gdb/sh-tdep.h 749--- a/gdb/sh-tdep.h
750+++ b/gdb/sh-tdep.h 750+++ b/gdb/sh-tdep.h
751@@ -21,6 +21,12 @@ 751@@ -21,6 +21,12 @@
@@ -828,7 +828,7 @@ index 666968f..62c65b5 100644
828 where each general-purpose register is stored inside the associated 828 where each general-purpose register is stored inside the associated
829 core file section. */ 829 core file section. */
830diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp 830diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
831index 6d9aef8..5b66b42 100644 831index 6d9aef81bb..5b66b429d1 100644
832--- a/gdb/testsuite/gdb.asm/asm-source.exp 832--- a/gdb/testsuite/gdb.asm/asm-source.exp
833+++ b/gdb/testsuite/gdb.asm/asm-source.exp 833+++ b/gdb/testsuite/gdb.asm/asm-source.exp
834@@ -116,6 +116,11 @@ switch -glob -- [istarget] { 834@@ -116,6 +116,11 @@ switch -glob -- [istarget] {
@@ -844,7 +844,7 @@ index 6d9aef8..5b66b42 100644
844 set asm-arch sh 844 set asm-arch sh
845 set debug-flags "-gdwarf-2" 845 set debug-flags "-gdwarf-2"
846diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc 846diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc
847index a4a5fc5..89efed7 100644 847index a4a5fc545e..89efed7795 100644
848--- a/gdb/testsuite/gdb.asm/sh.inc 848--- a/gdb/testsuite/gdb.asm/sh.inc
849+++ b/gdb/testsuite/gdb.asm/sh.inc 849+++ b/gdb/testsuite/gdb.asm/sh.inc
850@@ -40,9 +40,8 @@ 850@@ -40,9 +40,8 @@
@@ -859,7 +859,7 @@ index a4a5fc5..89efed7 100644
859 .align 1 859 .align 1
860 .Lafterconst\@: 860 .Lafterconst\@:
861diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c 861diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c
862index 424e1b8..0de2e7b 100644 862index 424e1b8327..0de2e7b633 100644
863--- a/gdb/testsuite/gdb.base/annota1.c 863--- a/gdb/testsuite/gdb.base/annota1.c
864+++ b/gdb/testsuite/gdb.base/annota1.c 864+++ b/gdb/testsuite/gdb.base/annota1.c
865@@ -1,6 +1,9 @@ 865@@ -1,6 +1,9 @@
@@ -873,7 +873,7 @@ index 424e1b8..0de2e7b 100644
873 void 873 void
874 handle_USR1 (int sig) 874 handle_USR1 (int sig)
875diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c 875diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c
876index 424e1b8..952aaf21 100644 876index 424e1b8327..952aaf218a 100644
877--- a/gdb/testsuite/gdb.base/annota3.c 877--- a/gdb/testsuite/gdb.base/annota3.c
878+++ b/gdb/testsuite/gdb.base/annota3.c 878+++ b/gdb/testsuite/gdb.base/annota3.c
879@@ -1,6 +1,10 @@ 879@@ -1,6 +1,10 @@
@@ -888,7 +888,7 @@ index 424e1b8..952aaf21 100644
888 void 888 void
889 handle_USR1 (int sig) 889 handle_USR1 (int sig)
890diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c 890diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c
891index 81f3b08..1574b2d 100644 891index 81f3b08d6b..1574b2d6cb 100644
892--- a/gdb/testsuite/gdb.base/sigall.c 892--- a/gdb/testsuite/gdb.base/sigall.c
893+++ b/gdb/testsuite/gdb.base/sigall.c 893+++ b/gdb/testsuite/gdb.base/sigall.c
894@@ -1,6 +1,9 @@ 894@@ -1,6 +1,9 @@
@@ -902,7 +902,7 @@ index 81f3b08..1574b2d 100644
902 /* Signal handlers, we set breakpoints in them to make sure that the 902 /* Signal handlers, we set breakpoints in them to make sure that the
903 signals really get delivered. */ 903 signals really get delivered. */
904diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c 904diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c
905index 7566068..1205a9b 100644 905index 756606880f..1205a9bc9c 100644
906--- a/gdb/testsuite/gdb.base/signals.c 906--- a/gdb/testsuite/gdb.base/signals.c
907+++ b/gdb/testsuite/gdb.base/signals.c 907+++ b/gdb/testsuite/gdb.base/signals.c
908@@ -3,6 +3,10 @@ 908@@ -3,6 +3,10 @@
@@ -917,5 +917,5 @@ index 7566068..1205a9b 100644
917 static int count = 0; 917 static int count = 0;
918 918
919-- 919--
9202.8.2 9202.11.0
921 921