diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-11-24 09:34:28 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-11-24 09:34:28 +0000 |
commit | ba21725bcda9e69025e4e4edf7aeaf4c9922b46a (patch) | |
tree | 1aac40d336bbbaeef497c891092133eed7e3df98 /devel/gdb/files | |
parent | c1e98c96256f8c282af784a950a5976e50534d94 (diff) |
Notes
Diffstat (limited to 'devel/gdb/files')
-rw-r--r-- | devel/gdb/files/patch-bfd-elf32-nds32.c | 20 | ||||
-rw-r--r-- | devel/gdb/files/patch-bfd-elf64-alpha.c | 63 | ||||
-rw-r--r-- | devel/gdb/files/patch-opcodes-cr16-opc.c | 65 | ||||
-rw-r--r-- | devel/gdb/files/patch-opcodes-crx-opc.c | 20 |
4 files changed, 0 insertions, 168 deletions
diff --git a/devel/gdb/files/patch-bfd-elf32-nds32.c b/devel/gdb/files/patch-bfd-elf32-nds32.c deleted file mode 100644 index 4eca6cfcdb79..000000000000 --- a/devel/gdb/files/patch-bfd-elf32-nds32.c +++ /dev/null @@ -1,20 +0,0 @@ ---- bfd/elf32-nds32.c.orig 2014-02-07 13:04:20.389741513 +0100 -+++ bfd/elf32-nds32.c 2014-02-07 13:06:47.079732839 +0100 -@@ -6303,7 +6303,7 @@ - int *pinsn_type) - { - uint16_t insn16 = 0; -- int insn_type; -+ int insn_type = 0; - unsigned long mach = bfd_get_mach (abfd); - - if (N32_SH5 (insn) != 0) -@@ -6518,7 +6518,7 @@ - { - int op6; - uint16_t insn16 = 0; -- int insn_type; -+ int insn_type = 0; - unsigned long mach = bfd_get_mach (abfd); - - /* Decode 32-bit instruction. */ diff --git a/devel/gdb/files/patch-bfd-elf64-alpha.c b/devel/gdb/files/patch-bfd-elf64-alpha.c deleted file mode 100644 index 8ea0fd776a13..000000000000 --- a/devel/gdb/files/patch-bfd-elf64-alpha.c +++ /dev/null @@ -1,63 +0,0 @@ ---- bfd/elf64-alpha.c.orig 2013-03-11 10:52:58.000000000 +0100 -+++ bfd/elf64-alpha.c 2013-03-11 11:50:24.000000000 +0100 -@@ -3585,9 +3585,9 @@ - - /* Some compilers warn about a Boolean-looking expression being - used in a switch. The explicit cast silences them. */ -- switch ((int) (!dynamic && !info->link_info->shared)) -- { -- case 1: -+ { -+ int skip_default = 0; -+ if (!dynamic && !info->link_info->shared) - { - bfd_vma tp_base; - bfd_signed_vma disp; -@@ -3605,7 +3605,7 @@ - irel[0].r_offset = pos[0] - info->contents; - irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPREL16); - irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE); -- break; -+ skip_default = 1; - } - else if (disp >= -(bfd_signed_vma) 0x80000000 - && disp < (bfd_signed_vma) 0x7fff8000 -@@ -3620,24 +3620,23 @@ - irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPRELHI); - irel[1].r_offset = pos[1] - info->contents; - irel[1].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPRELLO); -- break; -+ skip_default = 1; - } - } -- /* FALLTHRU */ -- -- default: -- use_gottprel = TRUE; -- -- insn = (OP_LDQ << 26) | (tlsgd_reg << 21) | (29 << 16); -- bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]); -- bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]); -- -- irel[0].r_offset = pos[0] - info->contents; -- irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_GOTTPREL); -- irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE); -- break; -- } -+ /* FALLTHRU (default) */ -+ if (skip_default != 1 ) -+ { -+ use_gottprel = TRUE; - -+ insn = (OP_LDQ << 26) | (tlsgd_reg << 21) | (29 << 16); -+ bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]); -+ bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]); -+ -+ irel[0].r_offset = pos[0] - info->contents; -+ irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_GOTTPREL); -+ irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE); -+ } -+ } - bfd_put_32 (info->abfd, (bfd_vma) INSN_RDUNIQ, pos[2]); - - insn = INSN_ADDQ | (16 << 21) | (0 << 16) | (0 << 0); diff --git a/devel/gdb/files/patch-opcodes-cr16-opc.c b/devel/gdb/files/patch-opcodes-cr16-opc.c deleted file mode 100644 index 229c49b00919..000000000000 --- a/devel/gdb/files/patch-opcodes-cr16-opc.c +++ /dev/null @@ -1,65 +0,0 @@ ---- opcodes/cr16-opc.c.orig 2013-03-07 10:34:48.000000000 +0100 -+++ opcodes/cr16-opc.c 2013-03-07 10:33:49.000000000 +0100 -@@ -502,36 +502,36 @@ - const reg_entry cr16_pregtab[] = - { - /* Build a processor register. */ -- REG(dbs, 0x0, CR16_P_REGTYPE), -- REG(dsr, 0x1, CR16_P_REGTYPE), -- REG(dcrl, 0x2, CR16_P_REGTYPE), -- REG(dcrh, 0x3, CR16_P_REGTYPE), -- REG(car0l, 0x4, CR16_P_REGTYPE), -- REG(car0h, 0x5, CR16_P_REGTYPE), -- REG(car1l, 0x6, CR16_P_REGTYPE), -- REG(car1h, 0x7, CR16_P_REGTYPE), -- REG(cfg, 0x8, CR16_P_REGTYPE), -- REG(psr, 0x9, CR16_P_REGTYPE), -- REG(intbasel, 0xa, CR16_P_REGTYPE), -- REG(intbaseh, 0xb, CR16_P_REGTYPE), -- REG(ispl, 0xc, CR16_P_REGTYPE), -- REG(isph, 0xd, CR16_P_REGTYPE), -- REG(uspl, 0xe, CR16_P_REGTYPE), -- REG(usph, 0xf, CR16_P_REGTYPE), -+ REG((reg)dbs, 0x0, CR16_P_REGTYPE), -+ REG((reg)dsr, 0x1, CR16_P_REGTYPE), -+ REG((reg)dcrl, 0x2, CR16_P_REGTYPE), -+ REG((reg)dcrh, 0x3, CR16_P_REGTYPE), -+ REG((reg)car0l, 0x4, CR16_P_REGTYPE), -+ REG((reg)car0h, 0x5, CR16_P_REGTYPE), -+ REG((reg)car1l, 0x6, CR16_P_REGTYPE), -+ REG((reg)car1h, 0x7, CR16_P_REGTYPE), -+ REG((reg)cfg, 0x8, CR16_P_REGTYPE), -+ REG((reg)psr, 0x9, CR16_P_REGTYPE), -+ REG((reg)intbasel, 0xa, CR16_P_REGTYPE), -+ REG((reg)intbaseh, 0xb, CR16_P_REGTYPE), -+ REG((reg)ispl, 0xc, CR16_P_REGTYPE), -+ REG((reg)isph, 0xd, CR16_P_REGTYPE), -+ REG((reg)uspl, 0xe, CR16_P_REGTYPE), -+ REG((reg)usph, 0xf, CR16_P_REGTYPE), - }; - - const reg_entry cr16_pregptab[] = - { -- REG(dbs, 0, CR16_P_REGTYPE), -- REG(dsr, 1, CR16_P_REGTYPE), -- REG(dcr, 2, CR16_P_REGTYPE), -- REG(car0, 4, CR16_P_REGTYPE), -- REG(car1, 6, CR16_P_REGTYPE), -- REG(cfg, 8, CR16_P_REGTYPE), -- REG(psr, 9, CR16_P_REGTYPE), -- REG(intbase, 10, CR16_P_REGTYPE), -- REG(isp, 12, CR16_P_REGTYPE), -- REG(usp, 14, CR16_P_REGTYPE), -+ REG((reg)dbs, 0, CR16_P_REGTYPE), -+ REG((reg)dsr, 1, CR16_P_REGTYPE), -+ REG((reg)dcr, 2, CR16_P_REGTYPE), -+ REG((reg)car0, 4, CR16_P_REGTYPE), -+ REG((reg)car1, 6, CR16_P_REGTYPE), -+ REG((reg)cfg, 8, CR16_P_REGTYPE), -+ REG((reg)psr, 9, CR16_P_REGTYPE), -+ REG((reg)intbase, 10, CR16_P_REGTYPE), -+ REG((reg)isp, 12, CR16_P_REGTYPE), -+ REG((reg)usp, 14, CR16_P_REGTYPE), - }; - - const unsigned int cr16_num_pregs = ARRAY_SIZE (cr16_pregtab); diff --git a/devel/gdb/files/patch-opcodes-crx-opc.c b/devel/gdb/files/patch-opcodes-crx-opc.c deleted file mode 100644 index 625774a84949..000000000000 --- a/devel/gdb/files/patch-opcodes-crx-opc.c +++ /dev/null @@ -1,20 +0,0 @@ ---- opcodes/crx-opc.c.orig 2013-03-07 10:35:06.000000000 +0100 -+++ opcodes/crx-opc.c 2013-03-07 10:40:31.000000000 +0100 -@@ -632,7 +632,7 @@ - const reg_entry crx_copregtab[] = - { - /* Build a Coprocessor register c<N>. */ --#define REG_C(N) REG(CONCAT2(c,N), N, CRX_C_REGTYPE) -+#define REG_C(N) REG((reg)CONCAT2(c,N), N, CRX_C_REGTYPE) - - REG_C(0), REG_C(1), REG_C(2), REG_C(3), - REG_C(4), REG_C(5), REG_C(6), REG_C(7), -@@ -640,7 +640,7 @@ - REG_C(12), REG_C(13), REG_C(14), REG_C(15), - - /* Build a Coprocessor Special register cs<N>. */ --#define REG_CS(N) REG(CONCAT2(cs,N), N, CRX_CS_REGTYPE) -+#define REG_CS(N) REG((reg)CONCAT2(cs,N), N, CRX_CS_REGTYPE) - - REG_CS(0), REG_CS(1), REG_CS(2), REG_CS(3), - REG_CS(4), REG_CS(5), REG_CS(6), REG_CS(7), |