mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
devel/gdb: fix build on current
Clang 6 doesn't allow negative numbers to be implicitely converted to unsigned types. This patch explicits all casts. While I'm here, add an option to silent tons of warning messages PR: 226644 Reported by: rakuco@
This commit is contained in:
parent
41cfe9be94
commit
b8942914f5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464688
@ -1,8 +1,9 @@
|
||||
# Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
|
||||
z Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gdb
|
||||
PORTVERSION= 8.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= GNU
|
||||
|
||||
@ -36,6 +37,7 @@ CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \
|
||||
--without-libunwind-ia64
|
||||
CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes
|
||||
CFLAGS+= -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable
|
||||
CFLAGS+= -Wno-unknown-warning-option
|
||||
EXCLUDE= dejagnu expect sim texinfo intl
|
||||
EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /}
|
||||
EXTRA_PATCHES= ${FILESDIR}/commit-d2176225dc \
|
||||
|
19
devel/gdb/files/patch-gdb_aarch64-fbsd-tdep.c
Normal file
19
devel/gdb/files/patch-gdb_aarch64-fbsd-tdep.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- gdb/aarch64-fbsd-tdep.c.orig 2018-03-15 16:39:29.951492000 +0100
|
||||
+++ gdb/aarch64-fbsd-tdep.c 2018-03-15 16:40:31.553135000 +0100
|
||||
@@ -118,11 +118,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- {0x910003e0, -1}, /* mov x0, sp */
|
||||
- {0x91014000, -1}, /* add x0, x0, #SF_UC */
|
||||
- {0xd2803428, -1}, /* mov x8, #SYS_sigreturn */
|
||||
- {0xd4000001, -1}, /* svc 0x0 */
|
||||
- {TRAMP_SENTINEL_INSN, -1}
|
||||
+ {0x910003e0, static_cast<ULONGEST>(-1)}, /* mov x0, sp */
|
||||
+ {0x91014000, static_cast<ULONGEST>(-1)}, /* add x0, x0, #SF_UC */
|
||||
+ {0xd2803428, static_cast<ULONGEST>(-1)}, /* mov x8, #SYS_sigreturn */
|
||||
+ {0xd4000001, static_cast<ULONGEST>(-1)}, /* svc 0x0 */
|
||||
+ {TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1)}
|
||||
},
|
||||
aarch64_fbsd_sigframe_init
|
||||
};
|
18
devel/gdb/files/patch-gdb_aarch64-linux-tdep.c
Normal file
18
devel/gdb/files/patch-gdb_aarch64-linux-tdep.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- gdb/aarch64-linux-tdep.c.orig 2018-03-15 16:42:39.445907000 +0100
|
||||
+++ gdb/aarch64-linux-tdep.c 2018-03-15 16:43:15.167745000 +0100
|
||||
@@ -176,12 +176,12 @@
|
||||
{
|
||||
/* movz x8, 0x8b (S=1,o=10,h=0,i=0x8b,r=8)
|
||||
Soo1 0010 1hhi iiii iiii iiii iiir rrrr */
|
||||
- {0xd2801168, -1},
|
||||
+ {0xd2801168, static_cast<ULONGEST>(-1)},
|
||||
|
||||
/* svc 0x0 (o=0, l=1)
|
||||
1101 0100 oooi iiii iiii iiii iii0 00ll */
|
||||
- {0xd4000001, -1},
|
||||
- {TRAMP_SENTINEL_INSN, -1}
|
||||
+ {0xd4000001, static_cast<ULONGEST>(-1)},
|
||||
+ {TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1)}
|
||||
},
|
||||
aarch64_linux_sigframe_init
|
||||
};
|
11
devel/gdb/files/patch-gdb_aarch64-tdep.c
Normal file
11
devel/gdb/files/patch-gdb_aarch64-tdep.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/aarch64-tdep.c.orig 2018-03-15 16:44:16.746186000 +0100
|
||||
+++ gdb/aarch64-tdep.c 2018-03-15 16:44:52.315010000 +0100
|
||||
@@ -2412,7 +2412,7 @@
|
||||
const int insn_size = 4;
|
||||
const int atomic_sequence_length = 16; /* Instruction sequence length. */
|
||||
CORE_ADDR pc = regcache_read_pc (regcache);
|
||||
- CORE_ADDR breaks[2] = { -1, -1 };
|
||||
+ CORE_ADDR breaks[2] = { static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1) };
|
||||
CORE_ADDR loc = pc;
|
||||
CORE_ADDR closing_insn = 0;
|
||||
uint32_t insn = read_memory_unsigned_integer (loc, insn_size,
|
11
devel/gdb/files/patch-gdb_alpha-tdep.c
Normal file
11
devel/gdb/files/patch-gdb_alpha-tdep.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/alpha-tdep.c.orig 2018-03-15 16:45:58.726244000 +0100
|
||||
+++ gdb/alpha-tdep.c 2018-03-15 16:46:30.051357000 +0100
|
||||
@@ -769,7 +769,7 @@
|
||||
static std::vector<CORE_ADDR>
|
||||
alpha_deal_with_atomic_sequence (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||
{
|
||||
- CORE_ADDR breaks[2] = {-1, -1};
|
||||
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
||||
CORE_ADDR loc = pc;
|
||||
CORE_ADDR closing_insn; /* Instruction that closes the atomic sequence. */
|
||||
unsigned int insn = alpha_read_insn (gdbarch, loc);
|
20
devel/gdb/files/patch-gdb_arch_arm-get-next-pcs.c
Normal file
20
devel/gdb/files/patch-gdb_arch_arm-get-next-pcs.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- gdb/arch/arm-get-next-pcs.c.orig 2018-03-15 10:02:33.823447000 +0100
|
||||
+++ gdb/arch/arm-get-next-pcs.c 2018-03-15 10:29:48.532027000 +0100
|
||||
@@ -49,7 +49,7 @@
|
||||
thumb_deal_with_atomic_sequence_raw (struct arm_get_next_pcs *self)
|
||||
{
|
||||
int byte_order_for_code = self->byte_order_for_code;
|
||||
- CORE_ADDR breaks[2] = {-1, -1};
|
||||
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
||||
CORE_ADDR pc = regcache_read_pc (self->regcache);
|
||||
CORE_ADDR loc = pc;
|
||||
unsigned short insn1, insn2;
|
||||
@@ -187,7 +187,7 @@
|
||||
arm_deal_with_atomic_sequence_raw (struct arm_get_next_pcs *self)
|
||||
{
|
||||
int byte_order_for_code = self->byte_order_for_code;
|
||||
- CORE_ADDR breaks[2] = {-1, -1};
|
||||
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
||||
CORE_ADDR pc = regcache_read_pc (self->regcache);
|
||||
CORE_ADDR loc = pc;
|
||||
unsigned int insn;
|
19
devel/gdb/files/patch-gdb_arm-fbsd-tdep.c
Normal file
19
devel/gdb/files/patch-gdb_arm-fbsd-tdep.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- gdb/arm-fbsd-tdep.c.orig 2018-03-15 10:31:28.468820000 +0100
|
||||
+++ gdb/arm-fbsd-tdep.c 2018-03-15 10:39:51.558505000 +0100
|
||||
@@ -123,11 +123,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- {0xe1a0000d, -1}, /* mov r0, sp */
|
||||
- {0xe2800040, -1}, /* add r0, r0, #SIGF_UC */
|
||||
- {0xe59f700c, -1}, /* ldr r7, [pc, #12] */
|
||||
- {0xef0001a1, -1}, /* swi SYS_sigreturn */
|
||||
- {TRAMP_SENTINEL_INSN, -1}
|
||||
+ {0xe1a0000d, static_cast<ULONGEST>(-1)}, /* mov r0, sp */
|
||||
+ {0xe2800040, static_cast<ULONGEST>(-1)}, /* add r0, r0, #SIGF_UC */
|
||||
+ {0xe59f700c, static_cast<ULONGEST>(-1)}, /* ldr r7, [pc, #12] */
|
||||
+ {0xef0001a1, static_cast<ULONGEST>(-1)}, /* swi SYS_sigreturn */
|
||||
+ {TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1)}
|
||||
},
|
||||
arm_fbsd_sigframe_init
|
||||
};
|
90
devel/gdb/files/patch-gdb_arm-linux-tdep.c
Normal file
90
devel/gdb/files/patch-gdb_arm-linux-tdep.c
Normal file
@ -0,0 +1,90 @@
|
||||
--- gdb/arm-linux-tdep.c.orig 2018-03-15 10:36:38.853100000 +0100
|
||||
+++ gdb/arm-linux-tdep.c 2018-03-15 10:42:37.222568000 +0100
|
||||
@@ -385,7 +385,7 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { ARM_LINUX_SIGRETURN_INSTR, -1 },
|
||||
+ { ARM_LINUX_SIGRETURN_INSTR, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_sigreturn_init
|
||||
@@ -395,7 +395,7 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { ARM_LINUX_RT_SIGRETURN_INSTR, -1 },
|
||||
+ { ARM_LINUX_RT_SIGRETURN_INSTR, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_rt_sigreturn_init
|
||||
@@ -405,8 +405,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { ARM_SET_R7_SIGRETURN, -1 },
|
||||
- { ARM_EABI_SYSCALL, -1 },
|
||||
+ { ARM_SET_R7_SIGRETURN, static_cast<ULONGEST>(-1) },
|
||||
+ { ARM_EABI_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_sigreturn_init
|
||||
@@ -416,8 +416,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { ARM_SET_R7_RT_SIGRETURN, -1 },
|
||||
- { ARM_EABI_SYSCALL, -1 },
|
||||
+ { ARM_SET_R7_RT_SIGRETURN, static_cast<ULONGEST>(-1) },
|
||||
+ { ARM_EABI_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_rt_sigreturn_init
|
||||
@@ -427,9 +427,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
2,
|
||||
{
|
||||
- { THUMB2_SET_R7_SIGRETURN1, -1 },
|
||||
- { THUMB2_SET_R7_SIGRETURN2, -1 },
|
||||
- { THUMB2_EABI_SYSCALL, -1 },
|
||||
+ { THUMB2_SET_R7_SIGRETURN1, static_cast<ULONGEST>(-1) },
|
||||
+ { THUMB2_SET_R7_SIGRETURN2, static_cast<ULONGEST>(-1) },
|
||||
+ { THUMB2_EABI_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_sigreturn_init
|
||||
@@ -439,9 +439,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
2,
|
||||
{
|
||||
- { THUMB2_SET_R7_RT_SIGRETURN1, -1 },
|
||||
- { THUMB2_SET_R7_RT_SIGRETURN2, -1 },
|
||||
- { THUMB2_EABI_SYSCALL, -1 },
|
||||
+ { THUMB2_SET_R7_RT_SIGRETURN1, static_cast<ULONGEST>(-1) },
|
||||
+ { THUMB2_SET_R7_RT_SIGRETURN2, static_cast<ULONGEST>(-1) },
|
||||
+ { THUMB2_EABI_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_rt_sigreturn_init
|
||||
@@ -451,8 +451,8 @@
|
||||
NORMAL_FRAME,
|
||||
4,
|
||||
{
|
||||
- { ARM_OABI_SYSCALL_RESTART_SYSCALL, -1 },
|
||||
- { ARM_LDR_PC_SP_12, -1 },
|
||||
+ { ARM_OABI_SYSCALL_RESTART_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { ARM_LDR_PC_SP_12, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_restart_syscall_init
|
||||
@@ -462,8 +462,8 @@
|
||||
NORMAL_FRAME,
|
||||
4,
|
||||
{
|
||||
- { ARM_OABI_SYSCALL_RESTART_SYSCALL, -1 },
|
||||
- { ARM_LDR_PC_SP_4, -1 },
|
||||
+ { ARM_OABI_SYSCALL_RESTART_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { ARM_LDR_PC_SP_4, static_cast<ULONGEST>(-1) },
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
arm_linux_restart_syscall_init
|
19
devel/gdb/files/patch-gdb_arm-obsd-tdep.c
Normal file
19
devel/gdb/files/patch-gdb_arm-obsd-tdep.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- gdb/arm-obsd-tdep.c.orig 2018-03-15 10:43:44.244835000 +0100
|
||||
+++ gdb/arm-obsd-tdep.c 2018-03-15 10:44:36.608679000 +0100
|
||||
@@ -58,11 +58,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0xe28d0010, -1 }, /* add r0, sp, #16 */
|
||||
- { 0xef000067, -1 }, /* swi SYS_sigreturn */
|
||||
- { 0xef000001, -1 }, /* swi SYS_exit */
|
||||
- { 0xeafffffc, -1 }, /* b . - 8 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0xe28d0010, static_cast<ULONGEST>(-1) }, /* add r0, sp, #16 */
|
||||
+ { 0xef000067, static_cast<ULONGEST>(-1) }, /* swi SYS_sigreturn */
|
||||
+ { 0xef000001, static_cast<ULONGEST>(-1) }, /* swi SYS_exit */
|
||||
+ { 0xeafffffc, static_cast<ULONGEST>(-1) }, /* b . - 8 */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
armobsd_sigframe_init
|
||||
};
|
11
devel/gdb/files/patch-gdb_bfin-linux-tdep.c
Normal file
11
devel/gdb/files/patch-gdb_bfin-linux-tdep.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/bfin-linux-tdep.c.orig 2018-03-15 10:45:37.746477000 +0100
|
||||
+++ gdb/bfin-linux-tdep.c 2018-03-15 10:46:02.925435000 +0100
|
||||
@@ -121,7 +121,7 @@
|
||||
{
|
||||
{ 0x00ADE128, 0xffffffff }, /* P0 = __NR_rt_sigreturn; */
|
||||
{ 0x00A0, 0xffff }, /* EXCPT 0; */
|
||||
- { TRAMP_SENTINEL_INSN, -1 },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) },
|
||||
},
|
||||
bfin_linux_sigframe_init,
|
||||
};
|
11
devel/gdb/files/patch-gdb_completer.c
Normal file
11
devel/gdb/files/patch-gdb_completer.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/completer.c.orig 2018-03-15 16:51:01.106677000 +0100
|
||||
+++ gdb/completer.c 2018-03-15 16:51:47.055214000 +0100
|
||||
@@ -2038,7 +2038,7 @@
|
||||
/* We don't rely on readline appending the quote char as
|
||||
delimiter as then readline wouldn't append the ' ' after the
|
||||
completion. */
|
||||
- char buf[2] = { quote_char () };
|
||||
+ char buf[2] = { static_cast<char> (quote_char ()) };
|
||||
|
||||
match_list[0] = reconcat (match_list[0], match_list[0],
|
||||
buf, (char *) NULL);
|
44
devel/gdb/files/patch-gdb_hppa-nbsd-tdep.c
Normal file
44
devel/gdb/files/patch-gdb_hppa-nbsd-tdep.c
Normal file
@ -0,0 +1,44 @@
|
||||
--- gdb/hppa-nbsd-tdep.c.orig 2018-03-15 15:58:14.876431000 +0100
|
||||
+++ gdb/hppa-nbsd-tdep.c 2018-03-15 16:00:44.247395000 +0100
|
||||
@@ -71,25 +71,25 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0xc7d7c012, -1 }, /* bb,>=,n %arg3, 30, 1f */
|
||||
- { 0xd6e01c1e, -1 }, /* depwi 0,31,2,%arg3 */
|
||||
- { 0x0ee81093, -1 }, /* ldw 4(%arg3), %r19 */
|
||||
- { 0x0ee01097, -1 }, /* ldw 0(%arg3), %arg3 */
|
||||
+ { 0xc7d7c012, static_cast<ULONGEST>(-1) }, /* bb,>=,n %arg3, 30, 1f */
|
||||
+ { 0xd6e01c1e, static_cast<ULONGEST>(-1) }, /* depwi 0,31,2,%arg3 */
|
||||
+ { 0x0ee81093, static_cast<ULONGEST>(-1) }, /* ldw 4(%arg3), %r19 */
|
||||
+ { 0x0ee01097, static_cast<ULONGEST>(-1) }, /* ldw 0(%arg3), %arg3 */
|
||||
/* 1: */
|
||||
- { 0xe8404000, -1 }, /* blr %r0, %rp */
|
||||
- { 0xeae0c002, -1 }, /* bv,n %r0(%arg3) */
|
||||
- { 0x08000240, -1 }, /* nop */
|
||||
+ { 0xe8404000, static_cast<ULONGEST>(-1) }, /* blr %r0, %rp */
|
||||
+ { 0xeae0c002, static_cast<ULONGEST>(-1) }, /* bv,n %r0(%arg3) */
|
||||
+ { 0x08000240, static_cast<ULONGEST>(-1) }, /* nop */
|
||||
|
||||
- { 0x0803025a, -1 }, /* copy %r3, %arg0 */
|
||||
- { 0x20200801, -1 }, /* ldil -40000000, %r1 */
|
||||
- { 0xe420e008, -1 }, /* be,l 4(%sr7, %r1), %sr0, %r31 */
|
||||
- { 0x34160268, -1 }, /* ldi 134, %t1 ; SYS_setcontext */
|
||||
+ { 0x0803025a, static_cast<ULONGEST>(-1) }, /* copy %r3, %arg0 */
|
||||
+ { 0x20200801, static_cast<ULONGEST>(-1) }, /* ldil -40000000, %r1 */
|
||||
+ { 0xe420e008, static_cast<ULONGEST>(-1) }, /* be,l 4(%sr7, %r1), %sr0, %r31 */
|
||||
+ { 0x34160268, static_cast<ULONGEST>(-1) }, /* ldi 134, %t1 ; SYS_setcontext */
|
||||
|
||||
- { 0x081c025a, -1 }, /* copy ret0, %arg0 */
|
||||
- { 0x20200801, -1 }, /* ldil -40000000, %r1 */
|
||||
- { 0xe420e008, -1 }, /* be,l 4(%sr7, %r1), %sr0, %r31 */
|
||||
- { 0x34160002, -1 }, /* ldi 1, %t1 ; SYS_exit */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x081c025a, static_cast<ULONGEST>(-1) }, /* copy ret0, %arg0 */
|
||||
+ { 0x20200801, static_cast<ULONGEST>(-1) }, /* ldil -40000000, %r1 */
|
||||
+ { 0xe420e008, static_cast<ULONGEST>(-1) }, /* be,l 4(%sr7, %r1), %sr0, %r31 */
|
||||
+ { 0x34160002, static_cast<ULONGEST>(-1) }, /* ldi 1, %t1 ; SYS_exit */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
hppanbsd_sigtramp_cache_init
|
||||
};
|
157
devel/gdb/files/patch-gdb_i386-nbsd-tdep.c
Normal file
157
devel/gdb/files/patch-gdb_i386-nbsd-tdep.c
Normal file
@ -0,0 +1,157 @@
|
||||
--- gdb/i386-nbsd-tdep.c.orig 2018-03-15 10:50:06.446434000 +0100
|
||||
+++ gdb/i386-nbsd-tdep.c 2018-03-15 11:04:42.700720000 +0100
|
||||
@@ -106,19 +106,19 @@
|
||||
SIGTRAMP_FRAME,
|
||||
1,
|
||||
{
|
||||
- { 0x8d, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x10, -1 },
|
||||
+ { 0x8d, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x10, static_cast<ULONGEST>(-1) },
|
||||
/* leal 0x10(%esp), %eax */
|
||||
- { 0x50, -1 }, /* pushl %eax */
|
||||
- { 0x50, -1 }, /* pushl %eax */
|
||||
- { 0xb8, -1 }, { 0x27, -1 }, {0x01, -1 }, {0x00, -1 }, {0x00, -1 },
|
||||
+ { 0x50, static_cast<ULONGEST>(-1) }, /* pushl %eax */
|
||||
+ { 0x50, static_cast<ULONGEST>(-1) }, /* pushl %eax */
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x27, static_cast<ULONGEST>(-1) }, {0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x127, %eax # __sigreturn14 */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x1, %eax # exit */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
i386nbsd_sigtramp_cache_init
|
||||
};
|
||||
@@ -128,21 +128,21 @@
|
||||
SIGTRAMP_FRAME,
|
||||
1,
|
||||
{
|
||||
- { 0x8d, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x0c, -1 },
|
||||
+ { 0x8d, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x0c, static_cast<ULONGEST>(-1) },
|
||||
/* leal 0x0c(%esp), %eax */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x27, -1 }, {0x01, -1 }, {0x00, -1 }, {0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x27, static_cast<ULONGEST>(-1) }, {0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x127, %eax # __sigreturn14 */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x1, %eax */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
i386nbsd_sigtramp_cache_init
|
||||
};
|
||||
@@ -152,21 +152,22 @@
|
||||
SIGTRAMP_FRAME,
|
||||
1,
|
||||
{
|
||||
- { 0x8b, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x08, -1 },
|
||||
+ { 0x8b, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x08, static_cast<ULONGEST>(-1) },
|
||||
/* movl 8(%esp),%eax */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x34, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x134, %eax # setcontext */
|
||||
- { 0xcd, -1 }, { 0x80, -1 },
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1) },
|
||||
/* int $0x80 */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x1, %eax */
|
||||
- { 0xcd, -1 }, { 0x80, -1 },
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
i386nbsd_sigtramp_cache_init
|
||||
};
|
||||
@@ -176,22 +177,22 @@
|
||||
SIGTRAMP_FRAME,
|
||||
1,
|
||||
{
|
||||
- { 0x8d, -1 }, { 0x84, -1 }, { 0x24, -1 },
|
||||
- { 0x8c, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 },
|
||||
+ { 0x8d, static_cast<ULONGEST>(-1) }, { 0x84, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) },
|
||||
+ { 0x8c, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* leal 0x8c(%esp), %eax */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x34, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x134, %eax # setcontext */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x1, %eax */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
i386nbsd_sigtramp_cache_init
|
||||
};
|
||||
@@ -201,23 +202,23 @@
|
||||
SIGTRAMP_FRAME,
|
||||
1,
|
||||
{
|
||||
- { 0x8d, -1 }, { 0x84, -1 }, { 0x24, -1 },
|
||||
- { 0x8c, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 },
|
||||
+ { 0x8d, static_cast<ULONGEST>(-1) }, { 0x84, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) },
|
||||
+ { 0x8c, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* leal 0x8c(%esp), %eax */
|
||||
- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
+ { 0x89, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
/* movl %eax, 0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x34, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) }, { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x134, %eax # setcontext */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { 0xc7, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 },
|
||||
- { 0xff, -1 }, { 0xff, -1 }, { 0xff, -1 }, { 0xff, -1 },
|
||||
+ { 0xc7, static_cast<ULONGEST>(-1) }, { 0x44, static_cast<ULONGEST>(-1) }, { 0x24, static_cast<ULONGEST>(-1) }, { 0x04, static_cast<ULONGEST>(-1) },
|
||||
+ { 0xff, static_cast<ULONGEST>(-1) }, { 0xff, static_cast<ULONGEST>(-1) }, { 0xff, static_cast<ULONGEST>(-1) }, { 0xff, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0xffffffff,0x4(%esp) */
|
||||
- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 },
|
||||
+ { 0xb8, static_cast<ULONGEST>(-1) }, { 0x01, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) }, {0x00, static_cast<ULONGEST>(-1) },
|
||||
/* movl $0x1, %eax */
|
||||
- { 0xcd, -1 }, { 0x80, -1},
|
||||
+ { 0xcd, static_cast<ULONGEST>(-1) }, { 0x80, static_cast<ULONGEST>(-1)},
|
||||
/* int $0x80 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
i386nbsd_sigtramp_cache_init
|
||||
};
|
11
devel/gdb/files/patch-gdb_linespec.c
Normal file
11
devel/gdb/files/patch-gdb_linespec.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/linespec.c.orig 2018-03-15 16:52:46.342610000 +0100
|
||||
+++ gdb/linespec.c 2018-03-15 16:53:18.324077000 +0100
|
||||
@@ -2912,7 +2912,7 @@
|
||||
new "quote" char. */
|
||||
if (tracker.quote_char ())
|
||||
{
|
||||
- char quote_char_str[2] = { tracker.quote_char () };
|
||||
+ char quote_char_str[2] = { static_cast<char>(tracker.quote_char () )};
|
||||
|
||||
fn = reconcat (fn, fn, quote_char_str, (char *) NULL);
|
||||
tracker.set_quote_char (':');
|
13
devel/gdb/files/patch-gdb_microblaze-linux-tdep.c
Normal file
13
devel/gdb/files/patch-gdb_microblaze-linux-tdep.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- gdb/microblaze-linux-tdep.c.orig 2018-03-15 11:06:05.114101000 +0100
|
||||
+++ gdb/microblaze-linux-tdep.c 2018-03-15 11:06:36.384643000 +0100
|
||||
@@ -107,8 +107,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x31800077, -1 }, /* addik R12,R0,119. */
|
||||
- { 0xb9cc0008, -1 }, /* brki R14,8. */
|
||||
+ { 0x31800077, static_cast<ULONGEST>(-1) }, /* addik R12,R0,119. */
|
||||
+ { 0xb9cc0008, static_cast<ULONGEST>(-1) }, /* brki R14,8. */
|
||||
{ TRAMP_SENTINEL_INSN },
|
||||
},
|
||||
microblaze_linux_sighandler_cache_init
|
53
devel/gdb/files/patch-gdb_mips-fbsd-tdep.c
Normal file
53
devel/gdb/files/patch-gdb_mips-fbsd-tdep.c
Normal file
@ -0,0 +1,53 @@
|
||||
--- gdb/mips-fbsd-tdep.c.orig 2018-03-15 11:11:08.892968000 +0100
|
||||
+++ gdb/mips-fbsd-tdep.c 2018-03-15 11:14:38.323126000 +0100
|
||||
@@ -342,11 +342,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
MIPS_INSN32_SIZE,
|
||||
{
|
||||
- { MIPS_INST_ADDIU_A0_SP_O32, -1 }, /* addiu a0, sp, SIGF_UC */
|
||||
- { MIPS_INST_LI_V0_SIGRETURN, -1 }, /* li v0, SYS_sigreturn */
|
||||
- { MIPS_INST_SYSCALL, -1 }, /* syscall */
|
||||
- { MIPS_INST_BREAK, -1 }, /* break */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MIPS_INST_ADDIU_A0_SP_O32, static_cast<ULONGEST>(-1) }, /* addiu a0, sp, SIGF_UC */
|
||||
+ { MIPS_INST_LI_V0_SIGRETURN, static_cast<ULONGEST>(-1) }, /* li v0, SYS_sigreturn */
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) }, /* syscall */
|
||||
+ { MIPS_INST_BREAK, static_cast<ULONGEST>(-1) }, /* break */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_fbsd_sigframe_init
|
||||
};
|
||||
@@ -434,11 +434,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
MIPS_INSN32_SIZE,
|
||||
{
|
||||
- { MIPS_INST_ADDIU_A0_SP_N32, -1 }, /* addiu a0, sp, SIGF_UC */
|
||||
- { MIPS_INST_LI_V0_SIGRETURN, -1 }, /* li v0, SYS_sigreturn */
|
||||
- { MIPS_INST_SYSCALL, -1 }, /* syscall */
|
||||
- { MIPS_INST_BREAK, -1 }, /* break */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MIPS_INST_ADDIU_A0_SP_N32, static_cast<ULONGEST>(-1) }, /* addiu a0, sp, SIGF_UC */
|
||||
+ { MIPS_INST_LI_V0_SIGRETURN, static_cast<ULONGEST>(-1) }, /* li v0, SYS_sigreturn */
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) }, /* syscall */
|
||||
+ { MIPS_INST_BREAK, static_cast<ULONGEST>(-1) }, /* break */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips64_fbsd_sigframe_init
|
||||
};
|
||||
@@ -451,11 +451,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
MIPS_INSN32_SIZE,
|
||||
{
|
||||
- { MIPS_INST_DADDIU_A0_SP_N64, -1 }, /* daddiu a0, sp, SIGF_UC */
|
||||
- { MIPS_INST_LI_V0_SIGRETURN, -1 }, /* li v0, SYS_sigreturn */
|
||||
- { MIPS_INST_SYSCALL, -1 }, /* syscall */
|
||||
- { MIPS_INST_BREAK, -1 }, /* break */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MIPS_INST_DADDIU_A0_SP_N64, static_cast<ULONGEST>(-1) }, /* daddiu a0, sp, SIGF_UC */
|
||||
+ { MIPS_INST_LI_V0_SIGRETURN, static_cast<ULONGEST>(-1) }, /* li v0, SYS_sigreturn */
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) }, /* syscall */
|
||||
+ { MIPS_INST_BREAK, static_cast<ULONGEST>(-1) }, /* break */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips64_fbsd_sigframe_init
|
||||
};
|
122
devel/gdb/files/patch-gdb_mips-linux-tdep.c
Normal file
122
devel/gdb/files/patch-gdb_mips-linux-tdep.c
Normal file
@ -0,0 +1,122 @@
|
||||
--- gdb/mips-linux-tdep.c.orig 2018-03-15 11:07:40.749034000 +0100
|
||||
+++ gdb/mips-linux-tdep.c 2018-03-15 11:09:52.878504000 +0100
|
||||
@@ -831,9 +831,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { MIPS_INST_LI_V0_SIGRETURN, -1 },
|
||||
- { MIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MIPS_INST_LI_V0_SIGRETURN, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_o32_sigframe_init,
|
||||
mips_linux_sigframe_validate
|
||||
@@ -843,9 +843,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { MIPS_INST_LI_V0_RT_SIGRETURN, -1 },
|
||||
- { MIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 } },
|
||||
+ { MIPS_INST_LI_V0_RT_SIGRETURN, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) } },
|
||||
mips_linux_o32_sigframe_init,
|
||||
mips_linux_sigframe_validate
|
||||
};
|
||||
@@ -854,9 +854,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { MIPS_INST_LI_V0_N32_RT_SIGRETURN, -1 },
|
||||
- { MIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MIPS_INST_LI_V0_N32_RT_SIGRETURN, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_n32n64_sigframe_init,
|
||||
mips_linux_sigframe_validate
|
||||
@@ -866,9 +866,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { MIPS_INST_LI_V0_N64_RT_SIGRETURN, -1 },
|
||||
- { MIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MIPS_INST_LI_V0_N64_RT_SIGRETURN, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_n32n64_sigframe_init,
|
||||
mips_linux_sigframe_validate
|
||||
@@ -878,11 +878,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
2,
|
||||
{
|
||||
- { MICROMIPS_INST_LI_V0, -1 },
|
||||
- { MIPS_NR_sigreturn, -1 },
|
||||
- { MICROMIPS_INST_POOL32A, -1 },
|
||||
- { MICROMIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MICROMIPS_INST_LI_V0, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_NR_sigreturn, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_POOL32A, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_o32_sigframe_init,
|
||||
micromips_linux_sigframe_validate
|
||||
@@ -892,11 +892,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
2,
|
||||
{
|
||||
- { MICROMIPS_INST_LI_V0, -1 },
|
||||
- { MIPS_NR_rt_sigreturn, -1 },
|
||||
- { MICROMIPS_INST_POOL32A, -1 },
|
||||
- { MICROMIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MICROMIPS_INST_LI_V0, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_NR_rt_sigreturn, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_POOL32A, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_o32_sigframe_init,
|
||||
micromips_linux_sigframe_validate
|
||||
@@ -906,11 +906,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
2,
|
||||
{
|
||||
- { MICROMIPS_INST_LI_V0, -1 },
|
||||
- { MIPS_NR_N32_rt_sigreturn, -1 },
|
||||
- { MICROMIPS_INST_POOL32A, -1 },
|
||||
- { MICROMIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MICROMIPS_INST_LI_V0, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_NR_N32_rt_sigreturn, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_POOL32A, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_n32n64_sigframe_init,
|
||||
micromips_linux_sigframe_validate
|
||||
@@ -920,11 +920,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
2,
|
||||
{
|
||||
- { MICROMIPS_INST_LI_V0, -1 },
|
||||
- { MIPS_NR_N64_rt_sigreturn, -1 },
|
||||
- { MICROMIPS_INST_POOL32A, -1 },
|
||||
- { MICROMIPS_INST_SYSCALL, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { MICROMIPS_INST_LI_V0, static_cast<ULONGEST>(-1) },
|
||||
+ { MIPS_NR_N64_rt_sigreturn, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_POOL32A, static_cast<ULONGEST>(-1) },
|
||||
+ { MICROMIPS_INST_SYSCALL, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips_linux_n32n64_sigframe_init,
|
||||
micromips_linux_sigframe_validate
|
20
devel/gdb/files/patch-gdb_mips-tdep.c
Normal file
20
devel/gdb/files/patch-gdb_mips-tdep.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- gdb/mips-tdep.c.orig 2018-03-15 11:15:08.500010000 +0100
|
||||
+++ gdb/mips-tdep.c 2018-03-15 11:16:05.745083000 +0100
|
||||
@@ -3882,7 +3882,7 @@
|
||||
static std::vector<CORE_ADDR>
|
||||
mips_deal_with_atomic_sequence (struct gdbarch *gdbarch, CORE_ADDR pc)
|
||||
{
|
||||
- CORE_ADDR breaks[2] = {-1, -1};
|
||||
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
||||
CORE_ADDR loc = pc;
|
||||
CORE_ADDR branch_bp; /* Breakpoint at branch instruction's destination. */
|
||||
ULONGEST insn;
|
||||
@@ -3985,7 +3985,7 @@
|
||||
{
|
||||
const int atomic_sequence_length = 16; /* Instruction sequence length. */
|
||||
int last_breakpoint = 0; /* Defaults to 0 (no breakpoints placed). */
|
||||
- CORE_ADDR breaks[2] = {-1, -1};
|
||||
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1), static_cast<CORE_ADDR>(-1)};
|
||||
CORE_ADDR branch_bp = 0; /* Breakpoint at branch instruction's
|
||||
destination. */
|
||||
CORE_ADDR loc = pc;
|
19
devel/gdb/files/patch-gdb_mips64-obsd-tdep.c
Normal file
19
devel/gdb/files/patch-gdb_mips64-obsd-tdep.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- gdb/mips64-obsd-tdep.c.orig 2018-03-15 16:47:34.626536000 +0100
|
||||
+++ gdb/mips64-obsd-tdep.c 2018-03-15 16:48:17.150853000 +0100
|
||||
@@ -127,11 +127,11 @@
|
||||
SIGTRAMP_FRAME,
|
||||
MIPS_INSN32_SIZE,
|
||||
{
|
||||
- { 0x67a40020, -1 }, /* daddiu a0,sp,32 */
|
||||
- { 0x24020067, -1 }, /* li v0,103 */
|
||||
- { 0x0000000c, -1 }, /* syscall */
|
||||
- { 0x0000000d, -1 }, /* break */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x67a40020, static_cast<ULONGEST>(-1) }, /* daddiu a0,sp,32 */
|
||||
+ { 0x24020067, static_cast<ULONGEST>(-1) }, /* li v0,103 */
|
||||
+ { 0x0000000c, static_cast<ULONGEST>(-1) }, /* syscall */
|
||||
+ { 0x0000000d, static_cast<ULONGEST>(-1) }, /* break */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
mips64obsd_sigframe_init
|
||||
};
|
42
devel/gdb/files/patch-gdb_mn10300-linux-tdep.c
Normal file
42
devel/gdb/files/patch-gdb_mn10300-linux-tdep.c
Normal file
@ -0,0 +1,42 @@
|
||||
--- gdb/mn10300-linux-tdep.c.orig 2018-03-15 11:17:21.462824000 +0100
|
||||
+++ gdb/mn10300-linux-tdep.c 2018-03-15 11:20:05.266582000 +0100
|
||||
@@ -476,13 +476,13 @@
|
||||
1,
|
||||
{
|
||||
/* mov 119,d0 */
|
||||
- { 0x2c, -1 },
|
||||
- { 0x77, -1 },
|
||||
- { 0x00, -1 },
|
||||
+ { 0x2c, static_cast<ULONGEST>(-1) },
|
||||
+ { 0x77, static_cast<ULONGEST>(-1) },
|
||||
+ { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* syscall 0 */
|
||||
- { 0xf0, -1 },
|
||||
- { 0xe0, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0xf0, static_cast<ULONGEST>(-1) },
|
||||
+ { 0xe0, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
am33_linux_sigframe_cache_init
|
||||
};
|
||||
@@ -492,13 +492,13 @@
|
||||
1,
|
||||
{
|
||||
/* mov 173,d0 */
|
||||
- { 0x2c, -1 },
|
||||
- { 0xad, -1 },
|
||||
- { 0x00, -1 },
|
||||
+ { 0x2c, static_cast<ULONGEST>(-1) },
|
||||
+ { 0xad, static_cast<ULONGEST>(-1) },
|
||||
+ { 0x00, static_cast<ULONGEST>(-1) },
|
||||
/* syscall 0 */
|
||||
- { 0xf0, -1 },
|
||||
- { 0xe0, -1 },
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0xf0, static_cast<ULONGEST>(-1) },
|
||||
+ { 0xe0, static_cast<ULONGEST>(-1) },
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
am33_linux_sigframe_cache_init
|
||||
};
|
24
devel/gdb/files/patch-gdb_nios2-linux-tdep.c
Normal file
24
devel/gdb/files/patch-gdb_nios2-linux-tdep.c
Normal file
@ -0,0 +1,24 @@
|
||||
--- gdb/nios2-linux-tdep.c.orig 2018-03-15 11:23:52.815692000 +0100
|
||||
+++ gdb/nios2-linux-tdep.c 2018-03-15 11:55:44.876122000 +0100
|
||||
@@ -164,8 +164,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { MATCH_R1_MOVI | SET_IW_I_B (2) | SET_IW_I_IMM16 (139), -1 },
|
||||
- { MATCH_R1_TRAP | SET_IW_R_IMM5 (0), -1},
|
||||
+ { MATCH_R1_MOVI | SET_IW_I_B (2) | SET_IW_I_IMM16 (139), static_cast<ULONGEST>(-1) },
|
||||
+ { MATCH_R1_TRAP | SET_IW_R_IMM5 (0), static_cast<ULONGEST>(-1)},
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
nios2_linux_rt_sigreturn_init
|
||||
@@ -176,8 +176,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { MATCH_R2_MOVI | SET_IW_F2I16_B (2) | SET_IW_F2I16_IMM16 (139), -1 },
|
||||
- { MATCH_R2_TRAP | SET_IW_X2L5_IMM5 (0), -1},
|
||||
+ { MATCH_R2_MOVI | SET_IW_F2I16_B (2) | SET_IW_F2I16_IMM16 (139), static_cast<ULONGEST>(-1) },
|
||||
+ { MATCH_R2_TRAP | SET_IW_X2L5_IMM5 (0), static_cast<ULONGEST>(-1)},
|
||||
{ TRAMP_SENTINEL_INSN }
|
||||
},
|
||||
nios2_linux_rt_sigreturn_init
|
50
devel/gdb/files/patch-gdb_ppc-linux-tdep.c
Normal file
50
devel/gdb/files/patch-gdb_ppc-linux-tdep.c
Normal file
@ -0,0 +1,50 @@
|
||||
--- gdb/ppc-linux-tdep.c.orig 2018-03-15 11:56:24.120083000 +0100
|
||||
+++ gdb/ppc-linux-tdep.c 2018-03-15 11:57:57.568381000 +0100
|
||||
@@ -663,8 +663,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x380000ac, -1 }, /* li r0, 172 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
+ { 0x380000ac, static_cast<ULONGEST>(-1) }, /* li r0, 172 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
{ TRAMP_SENTINEL_INSN },
|
||||
},
|
||||
ppc32_linux_sigaction_cache_init
|
||||
@@ -673,9 +673,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x38210080, -1 }, /* addi r1,r1,128 */
|
||||
- { 0x380000ac, -1 }, /* li r0, 172 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
+ { 0x38210080, static_cast<ULONGEST>(-1) }, /* addi r1,r1,128 */
|
||||
+ { 0x380000ac, static_cast<ULONGEST>(-1) }, /* li r0, 172 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
{ TRAMP_SENTINEL_INSN },
|
||||
},
|
||||
ppc64_linux_sigaction_cache_init
|
||||
@@ -684,8 +684,8 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x38000077, -1 }, /* li r0,119 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
+ { 0x38000077, static_cast<ULONGEST>(-1) }, /* li r0,119 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
{ TRAMP_SENTINEL_INSN },
|
||||
},
|
||||
ppc32_linux_sighandler_cache_init
|
||||
@@ -694,9 +694,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x38210080, -1 }, /* addi r1,r1,128 */
|
||||
- { 0x38000077, -1 }, /* li r0,119 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
+ { 0x38210080, static_cast<ULONGEST>(-1) }, /* addi r1,r1,128 */
|
||||
+ { 0x38000077, static_cast<ULONGEST>(-1) }, /* li r0,119 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
{ TRAMP_SENTINEL_INSN },
|
||||
},
|
||||
ppc64_linux_sighandler_cache_init
|
48
devel/gdb/files/patch-gdb_ppc-nbsd-tdep.c
Normal file
48
devel/gdb/files/patch-gdb_ppc-nbsd-tdep.c
Normal file
@ -0,0 +1,48 @@
|
||||
--- gdb/ppc-nbsd-tdep.c.orig 2018-03-15 13:48:32.041494000 +0100
|
||||
+++ gdb/ppc-nbsd-tdep.c 2018-03-15 13:50:31.332926000 +0100
|
||||
@@ -137,14 +137,14 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x3821fff0, -1 }, /* add r1,r1,-16 */
|
||||
- { 0x4e800021, -1 }, /* blrl */
|
||||
- { 0x38610018, -1 }, /* addi r3,r1,24 */
|
||||
- { 0x38000127, -1 }, /* li r0,295 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
- { 0x38000001, -1 }, /* li r0,1 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x3821fff0, static_cast<ULONGEST>(-1) }, /* add r1,r1,-16 */
|
||||
+ { 0x4e800021, static_cast<ULONGEST>(-1) }, /* blrl */
|
||||
+ { 0x38610018, static_cast<ULONGEST>(-1) }, /* addi r3,r1,24 */
|
||||
+ { 0x38000127, static_cast<ULONGEST>(-1) }, /* li r0,295 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
+ { 0x38000001, static_cast<ULONGEST>(-1) }, /* li r0,1 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
ppcnbsd_sigtramp_cache_init
|
||||
};
|
||||
@@ -156,14 +156,14 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x3821fff0, -1 }, /* add r1,r1,-16 */
|
||||
- { 0x4e800021, -1 }, /* blrl */
|
||||
- { 0x38610010, -1 }, /* addi r3,r1,16 */
|
||||
- { 0x38000127, -1 }, /* li r0,295 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
- { 0x38000001, -1 }, /* li r0,1 */
|
||||
- { 0x44000002, -1 }, /* sc */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x3821fff0, static_cast<ULONGEST>(-1) }, /* add r1,r1,-16 */
|
||||
+ { 0x4e800021, static_cast<ULONGEST>(-1) }, /* blrl */
|
||||
+ { 0x38610010, static_cast<ULONGEST>(-1) }, /* addi r3,r1,16 */
|
||||
+ { 0x38000127, static_cast<ULONGEST>(-1) }, /* li r0,295 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
+ { 0x38000001, static_cast<ULONGEST>(-1) }, /* li r0,1 */
|
||||
+ { 0x44000002, static_cast<ULONGEST>(-1) }, /* sc */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
ppcnbsd_sigtramp_cache_init
|
||||
};
|
252
devel/gdb/files/patch-gdb_ppc64-tdep.c
Normal file
252
devel/gdb/files/patch-gdb_ppc64-tdep.c
Normal file
@ -0,0 +1,252 @@
|
||||
--- gdb/ppc64-tdep.c.orig 2018-03-15 16:02:11.651610000 +0100
|
||||
+++ gdb/ppc64-tdep.c 2018-03-15 16:10:27.958608000 +0100
|
||||
@@ -30,24 +30,27 @@
|
||||
you can use -1 to make masks. */
|
||||
|
||||
#define insn_d(opcd, rts, ra, d) \
|
||||
+ static_cast<unsigned int>( \
|
||||
((((opcd) & 0x3f) << 26) \
|
||||
| (((rts) & 0x1f) << 21) \
|
||||
| (((ra) & 0x1f) << 16) \
|
||||
- | ((d) & 0xffff))
|
||||
+ | ((d) & 0xffff)))
|
||||
|
||||
#define insn_ds(opcd, rts, ra, d, xo) \
|
||||
+ static_cast<unsigned int>( \
|
||||
((((opcd) & 0x3f) << 26) \
|
||||
| (((rts) & 0x1f) << 21) \
|
||||
| (((ra) & 0x1f) << 16) \
|
||||
| ((d) & 0xfffc) \
|
||||
- | ((xo) & 0x3))
|
||||
+ | ((xo) & 0x3)))
|
||||
|
||||
#define insn_xfx(opcd, rts, spr, xo) \
|
||||
+ static_cast<unsigned int>( \
|
||||
((((opcd) & 0x3f) << 26) \
|
||||
| (((rts) & 0x1f) << 21) \
|
||||
| (((spr) & 0x1f) << 16) \
|
||||
| (((spr) & 0x3e0) << 6) \
|
||||
- | (((xo) & 0x3ff) << 1))
|
||||
+ | (((xo) & 0x3ff) << 1)))
|
||||
|
||||
/* PLT_OFF is the TOC-relative offset of a 64-bit PowerPC PLT entry.
|
||||
Return the function's entry point. */
|
||||
@@ -86,7 +89,7 @@
|
||||
{ insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 },
|
||||
|
||||
/* std r2, 40(r1) */
|
||||
- { -1, insn_ds (62, 2, 1, 40, 0), 0 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 40, 0), 0 },
|
||||
|
||||
/* ld r11, <any>(r12) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 0 },
|
||||
@@ -107,7 +110,7 @@
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 1 },
|
||||
|
||||
/* bctr */
|
||||
- { -1, 0x4e800420, 0 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 0 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -122,13 +125,13 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage2[] =
|
||||
{
|
||||
/* std r2, 40(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
|
||||
/* addis r12, r2, <any> */
|
||||
{ insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 },
|
||||
|
||||
/* std r2, 40(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
|
||||
/* ld r11, <any>(r12) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 0 },
|
||||
@@ -140,10 +143,10 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 11, 9, 467), 0 },
|
||||
|
||||
/* xor r11, r11, r11 <optional> */
|
||||
- { -1, 0x7d6b5a78, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7d6b5a78, 1 },
|
||||
|
||||
/* add r12, r12, r11 <optional> */
|
||||
- { -1, 0x7d8c5a14, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7d8c5a14, 1 },
|
||||
|
||||
/* ld r2, <any>(r12) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 12, 0, 0), 0 },
|
||||
@@ -152,10 +155,10 @@
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 1 },
|
||||
|
||||
/* bctr <optional> */
|
||||
- { -1, 0x4e800420, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 1 },
|
||||
|
||||
/* cmpldi r2, 0 <optional> */
|
||||
- { -1, 0x28220000, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x28220000, 1 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -165,7 +168,7 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage3[] =
|
||||
{
|
||||
/* std r2, 40(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
|
||||
/* ld r11, <any>(r2) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 0 },
|
||||
@@ -177,10 +180,10 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 11, 9, 467), 0 },
|
||||
|
||||
/* xor r11, r11, r11 <optional> */
|
||||
- { -1, 0x7d6b5a78, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7d6b5a78, 1 },
|
||||
|
||||
/* add r2, r2, r11 <optional> */
|
||||
- { -1, 0x7c425a14, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7c425a14, 1 },
|
||||
|
||||
/* ld r11, <any>(r2) <optional> */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 1 },
|
||||
@@ -189,10 +192,10 @@
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 2, 0, 0), 0 },
|
||||
|
||||
/* bctr <optional> */
|
||||
- { -1, 0x4e800420, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 1 },
|
||||
|
||||
/* cmpldi r2, 0 <optional> */
|
||||
- { -1, 0x28220000, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x28220000, 1 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -204,7 +207,7 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage4[] =
|
||||
{
|
||||
/* std r2, 40(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
|
||||
/* addis r11, r2, <any> */
|
||||
{ insn_d (-1, -1, -1, 0), insn_d (15, 11, 2, 0), 0 },
|
||||
@@ -219,10 +222,10 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 },
|
||||
|
||||
/* xor r2, r12, r12 <optional> */
|
||||
- { -1, 0x7d826278, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7d826278, 1 },
|
||||
|
||||
/* add r11, r11, r2 <optional> */
|
||||
- { -1, 0x7d6b1214, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7d6b1214, 1 },
|
||||
|
||||
/* ld r2, <any>(r11) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 11, 0, 0), 0 },
|
||||
@@ -231,10 +234,10 @@
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 11, 0, 0), 1 },
|
||||
|
||||
/* bctr <optional> */
|
||||
- { -1, 0x4e800420, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 1 },
|
||||
|
||||
/* cmpldi r2, 0 <optional> */
|
||||
- { -1, 0x28220000, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x28220000, 1 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -246,7 +249,7 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage5[] =
|
||||
{
|
||||
/* std r2, 40(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 40, 0), 1 },
|
||||
|
||||
/* ld r12, <any>(r2) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 12, 2, 0, 0), 0 },
|
||||
@@ -258,10 +261,10 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 },
|
||||
|
||||
/* xor r11, r12, r12 <optional> */
|
||||
- { -1, 0x7d8b6278, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7d8b6278, 1 },
|
||||
|
||||
/* add r2, r2, r11 <optional> */
|
||||
- { -1, 0x7c425a14, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x7c425a14, 1 },
|
||||
|
||||
/* ld r11, <any>(r2) <optional> */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 1 },
|
||||
@@ -270,10 +273,10 @@
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 2, 0, 0), 0 },
|
||||
|
||||
/* bctr <optional> */
|
||||
- { -1, 0x4e800420, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 1 },
|
||||
|
||||
/* cmpldi r2, 0 <optional> */
|
||||
- { -1, 0x28220000, 1 },
|
||||
+ { static_cast<unsigned int>(-1), 0x28220000, 1 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -283,7 +286,7 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage6[] =
|
||||
{
|
||||
/* std r2, 24(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 24, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 24, 0), 1 },
|
||||
|
||||
/* addis r11, r2, <any> */
|
||||
{ insn_d (-1, -1, -1, 0), insn_d (15, 11, 2, 0), 0 },
|
||||
@@ -295,7 +298,7 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 },
|
||||
|
||||
/* bctr */
|
||||
- { -1, 0x4e800420, 0 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 0 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -305,7 +308,7 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage7[] =
|
||||
{
|
||||
/* std r2, 24(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 24, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 24, 0), 1 },
|
||||
|
||||
/* ld r12, <any>(r2) */
|
||||
{ insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 12, 2, 0, 0), 0 },
|
||||
@@ -314,7 +317,7 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 },
|
||||
|
||||
/* bctr */
|
||||
- { -1, 0x4e800420, 0 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 0 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
||||
@@ -325,7 +328,7 @@
|
||||
static struct ppc_insn_pattern ppc64_standard_linkage8[] =
|
||||
{
|
||||
/* std r2, 24(r1) <optional> */
|
||||
- { -1, insn_ds (62, 2, 1, 24, 0), 1 },
|
||||
+ { static_cast<unsigned int>(-1), insn_ds (62, 2, 1, 24, 0), 1 },
|
||||
|
||||
/* addis r12, r2, <any> */
|
||||
{ insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 },
|
||||
@@ -337,7 +340,7 @@
|
||||
{ insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 },
|
||||
|
||||
/* bctr */
|
||||
- { -1, 0x4e800420, 0 },
|
||||
+ { static_cast<unsigned int>(-1), 0x4e800420, 0 },
|
||||
|
||||
{ 0, 0, 0 }
|
||||
};
|
11
devel/gdb/files/patch-gdb_rs6000-tdep.c
Normal file
11
devel/gdb/files/patch-gdb_rs6000-tdep.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/rs6000-tdep.c.orig 2018-03-15 16:11:47.189448000 +0100
|
||||
+++ gdb/rs6000-tdep.c 2018-03-15 16:12:36.114973000 +0100
|
||||
@@ -1173,7 +1173,7 @@
|
||||
struct gdbarch *gdbarch = regcache->arch ();
|
||||
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
|
||||
CORE_ADDR pc = regcache_read_pc (regcache);
|
||||
- CORE_ADDR breaks[2] = {-1, -1};
|
||||
+ CORE_ADDR breaks[2] = {static_cast<CORE_ADDR>(-1),static_cast<CORE_ADDR>(-1)};
|
||||
CORE_ADDR loc = pc;
|
||||
CORE_ADDR closing_insn; /* Instruction that closes the atomic sequence. */
|
||||
int insn = read_memory_integer (loc, PPC_INSN_SIZE, byte_order);
|
28
devel/gdb/files/patch-gdb_sparc-linux-tdep.c
Normal file
28
devel/gdb/files/patch-gdb_sparc-linux-tdep.c
Normal file
@ -0,0 +1,28 @@
|
||||
--- gdb/sparc-linux-tdep.c.orig 2018-03-15 16:27:40.393176000 +0100
|
||||
+++ gdb/sparc-linux-tdep.c 2018-03-15 16:29:00.339581000 +0100
|
||||
@@ -68,9 +68,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x821020d8, -1 }, /* mov __NR_sugreturn, %g1 */
|
||||
- { 0x91d02010, -1 }, /* ta 0x10 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x821020d8, static_cast<ULONGEST>(-1) }, /* mov __NR_sugreturn, %g1 */
|
||||
+ { 0x91d02010, static_cast<ULONGEST>(-1) }, /* ta 0x10 */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
sparc32_linux_sigframe_init
|
||||
};
|
||||
@@ -83,9 +83,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x82102065, -1 }, /* mov __NR_rt_sigreturn, %g1 */
|
||||
- { 0x91d02010, -1 }, /* ta 0x10 */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x82102065, static_cast<ULONGEST>(-1) }, /* mov __NR_rt_sigreturn, %g1 */
|
||||
+ { 0x91d02010, static_cast<ULONGEST>(-1) }, /* ta 0x10 */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
sparc32_linux_sigframe_init
|
||||
};
|
15
devel/gdb/files/patch-gdb_sparc64-linux-tdep.c
Normal file
15
devel/gdb/files/patch-gdb_sparc64-linux-tdep.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- gdb/sparc64-linux-tdep.c.orig 2018-03-15 16:48:31.376247000 +0100
|
||||
+++ gdb/sparc64-linux-tdep.c 2018-03-15 16:49:05.405119000 +0100
|
||||
@@ -64,9 +64,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
4,
|
||||
{
|
||||
- { 0x82102065, -1 }, /* mov __NR_rt_sigreturn, %g1 */
|
||||
- { 0x91d0206d, -1 }, /* ta 0x6d */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x82102065, static_cast<ULONGEST>(-1) }, /* mov __NR_rt_sigreturn, %g1 */
|
||||
+ { 0x91d0206d, static_cast<ULONGEST>(-1) }, /* ta 0x6d */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
sparc64_linux_sigframe_init
|
||||
};
|
11
devel/gdb/files/patch-gdb_tick6x-linux-tdep.c
Normal file
11
devel/gdb/files/patch-gdb_tick6x-linux-tdep.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/tic6x-linux-tdep.c.orig 2018-03-15 16:29:54.131451000 +0100
|
||||
+++ gdb/tic6x-linux-tdep.c 2018-03-15 16:30:19.640674000 +0100
|
||||
@@ -137,7 +137,7 @@
|
||||
4,
|
||||
{
|
||||
{0x000045aa, 0x0fffffff}, /* mvk .S2 139,b0 */
|
||||
- {0x10000000, -1}, /* swe */
|
||||
+ {0x10000000, static_cast<ULONGEST>(-1)}, /* swe */
|
||||
{TRAMP_SENTINEL_INSN}
|
||||
},
|
||||
tic6x_linux_rt_sigreturn_init
|
15
devel/gdb/files/patch-gdb_tilegx-linux-tdep.c
Normal file
15
devel/gdb/files/patch-gdb_tilegx-linux-tdep.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- gdb/tilegx-linux-tdep.c.orig 2018-03-15 16:31:44.623131000 +0100
|
||||
+++ gdb/tilegx-linux-tdep.c 2018-03-15 16:32:29.603585000 +0100
|
||||
@@ -65,9 +65,9 @@
|
||||
SIGTRAMP_FRAME,
|
||||
8,
|
||||
{
|
||||
- { 0x00045fe551483000ULL, -1 }, /* { moveli r10, 139 } */
|
||||
- { 0x286b180051485000ULL, -1 }, /* { swint1 } */
|
||||
- { TRAMP_SENTINEL_INSN, -1 }
|
||||
+ { 0x00045fe551483000ULL, static_cast<ULONGEST>(-1) }, /* { moveli r10, 139 } */
|
||||
+ { 0x286b180051485000ULL, static_cast<ULONGEST>(-1) }, /* { swint1 } */
|
||||
+ { TRAMP_SENTINEL_INSN, static_cast<ULONGEST>(-1) }
|
||||
},
|
||||
tilegx_linux_sigframe_init
|
||||
};
|
11
devel/gdb/files/patch-gdb_tramp-frame.h
Normal file
11
devel/gdb/files/patch-gdb_tramp-frame.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- gdb/tramp-frame.h.orig 2018-03-15 10:38:21.385046000 +0100
|
||||
+++ gdb/tramp-frame.h 2018-03-15 10:38:49.942224000 +0100
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
/* Magic instruction that to mark the end of the signal trampoline
|
||||
instruction sequence. */
|
||||
-#define TRAMP_SENTINEL_INSN ((LONGEST) -1)
|
||||
+#define TRAMP_SENTINEL_INSN ((ULONGEST) -1)
|
||||
|
||||
struct tramp_frame
|
||||
{
|
20
devel/gdb/files/patch-gdb_xtensa-tdep.h
Normal file
20
devel/gdb/files/patch-gdb_xtensa-tdep.h
Normal file
@ -0,0 +1,20 @@
|
||||
--- gdb/xtensa-tdep.h.orig 2018-03-15 16:33:53.194056000 +0100
|
||||
+++ gdb/xtensa-tdep.h 2018-03-15 16:37:44.151472000 +0100
|
||||
@@ -130,7 +130,7 @@
|
||||
ct, bsz, sz, al, tnum, flg, cp, mas, fet, sto},
|
||||
#define XTREG_END \
|
||||
{0, 0, (xtensa_register_type_t) 0, (xtensa_register_group_t) 0, \
|
||||
- 0, 0, 0, 0, -1, 0, 0, 0, 0, 0},
|
||||
+ 0, 0, 0, 0, static_cast<unsigned int>(-1), 0, 0, 0, 0, 0},
|
||||
|
||||
#define XTENSA_REGISTER_FLAGS_PRIVILEGED 0x0001
|
||||
#define XTENSA_REGISTER_FLAGS_READABLE 0x0002
|
||||
@@ -228,7 +228,7 @@
|
||||
#define XTENSA_GDBARCH_TDEP_INSTANTIATE(rmap,spillsz) \
|
||||
{ \
|
||||
0, /* target_flags */ \
|
||||
- -1, /* spill_location */ \
|
||||
+ static_cast<unsigned int>(-1), /* spill_location */ \
|
||||
(spillsz), /* spill_size */ \
|
||||
0, /* unused */ \
|
||||
(XSHAL_ABI == XTHAL_ABI_CALL0 \
|
Loading…
Reference in New Issue
Block a user