aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-nbsd-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-08-07 13:04:05 -0600
committerTom Tromey <tom@tromey.com>2018-08-27 12:00:10 -0600
commit7bc02706c3e23b58e1a74ca47fada84fc68699c7 (patch)
tree37719628fe468560d733f843512cf7d8dc48945a /gdb/hppa-nbsd-tdep.c
parent70ab8ccd4f382a6c7e59c523c22b07fe03a95f52 (diff)
downloadgdb-7bc02706c3e23b58e1a74ca47fada84fc68699c7.zip
gdb-7bc02706c3e23b58e1a74ca47fada84fc68699c7.tar.gz
gdb-7bc02706c3e23b58e1a74ca47fada84fc68699c7.tar.bz2
Avoid -Wnarrowing warnings in struct tramp_frame instances
This avoids -Wnarrowing warnings in struct tramp_frame instances, replacing uses of -1 with a new ULONGEST_MAX. It also redefined TRAMP_SENTINEL_INSN to avoid the same warning. gdb/ChangeLog 2018-08-27 Tom Tromey <tom@tromey.com> * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use ULONGEST_MAX. * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use ULONGEST_MAX. * sparc-linux-tdep.c (sparc32_linux_sigframe) (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use ULONGEST_MAX. * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) (ppc64_linux_sigaction_tramp_frame) (ppc32_linux_sighandler_tramp_frame) (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. * mn10300-linux-tdep.c (am33_linux_sigframe) (am33_linux_rt_sigframe): Use ULONGEST_MAX. * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. * mips-linux-tdep.c (mips_linux_o32_sigframe) (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) (mips64_fbsd_sigframe): Use ULONGEST_MAX. * microblaze-linux-tdep.c (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. * common/common-types.h (ULONGEST_MAX): New define. (CORE_ADDR_MAX): Fix formatting. * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) (arm_linux_rt_sigreturn_tramp_frame) (arm_eabi_linux_sigreturn_tramp_frame) (arm_eabi_linux_rt_sigreturn_tramp_frame) (thumb2_eabi_linux_sigreturn_tramp_frame) (thumb2_eabi_linux_rt_sigreturn_tramp_frame) (arm_linux_restart_syscall_tramp_frame) (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use ULONGEST_MAX. * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
Diffstat (limited to 'gdb/hppa-nbsd-tdep.c')
-rw-r--r--gdb/hppa-nbsd-tdep.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/gdb/hppa-nbsd-tdep.c b/gdb/hppa-nbsd-tdep.c
index 49bf17b..b99f63c 100644
--- a/gdb/hppa-nbsd-tdep.c
+++ b/gdb/hppa-nbsd-tdep.c
@@ -71,25 +71,25 @@ static const struct tramp_frame hppanbsd_sigtramp_si4 =
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, ULONGEST_MAX }, /* bb,>=,n %arg3, 30, 1f */
+ { 0xd6e01c1e, ULONGEST_MAX }, /* depwi 0,31,2,%arg3 */
+ { 0x0ee81093, ULONGEST_MAX }, /* ldw 4(%arg3), %r19 */
+ { 0x0ee01097, ULONGEST_MAX }, /* ldw 0(%arg3), %arg3 */
/* 1: */
- { 0xe8404000, -1 }, /* blr %r0, %rp */
- { 0xeae0c002, -1 }, /* bv,n %r0(%arg3) */
- { 0x08000240, -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 */
-
- { 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 }
+ { 0xe8404000, ULONGEST_MAX }, /* blr %r0, %rp */
+ { 0xeae0c002, ULONGEST_MAX }, /* bv,n %r0(%arg3) */
+ { 0x08000240, ULONGEST_MAX }, /* nop */
+
+ { 0x0803025a, ULONGEST_MAX }, /* copy %r3, %arg0 */
+ { 0x20200801, ULONGEST_MAX }, /* ldil -40000000, %r1 */
+ { 0xe420e008, ULONGEST_MAX }, /* be,l 4(%sr7, %r1), %sr0, %r31 */
+ { 0x34160268, ULONGEST_MAX }, /* ldi 134, %t1 ; SYS_setcontext */
+
+ { 0x081c025a, ULONGEST_MAX }, /* copy ret0, %arg0 */
+ { 0x20200801, ULONGEST_MAX }, /* ldil -40000000, %r1 */
+ { 0xe420e008, ULONGEST_MAX }, /* be,l 4(%sr7, %r1), %sr0, %r31 */
+ { 0x34160002, ULONGEST_MAX }, /* ldi 1, %t1 ; SYS_exit */
+ { TRAMP_SENTINEL_INSN, ULONGEST_MAX }
},
hppanbsd_sigtramp_cache_init
};