diff options
author | Tom Tromey <tom@tromey.com> | 2018-08-07 13:04:05 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-08-27 12:00:10 -0600 |
commit | 7bc02706c3e23b58e1a74ca47fada84fc68699c7 (patch) | |
tree | 37719628fe468560d733f843512cf7d8dc48945a /gdb/arm-linux-tdep.c | |
parent | 70ab8ccd4f382a6c7e59c523c22b07fe03a95f52 (diff) | |
download | binutils-gdb-7bc02706c3e23b58e1a74ca47fada84fc68699c7.tar.gz |
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/arm-linux-tdep.c')
-rw-r--r-- | gdb/arm-linux-tdep.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 4c5a4bc32b9..78c4c807434 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -385,7 +385,7 @@ static struct tramp_frame arm_linux_sigreturn_tramp_frame = { SIGTRAMP_FRAME, 4, { - { ARM_LINUX_SIGRETURN_INSTR, -1 }, + { ARM_LINUX_SIGRETURN_INSTR, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_sigreturn_init @@ -395,7 +395,7 @@ static struct tramp_frame arm_linux_rt_sigreturn_tramp_frame = { SIGTRAMP_FRAME, 4, { - { ARM_LINUX_RT_SIGRETURN_INSTR, -1 }, + { ARM_LINUX_RT_SIGRETURN_INSTR, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_rt_sigreturn_init @@ -405,8 +405,8 @@ static struct tramp_frame arm_eabi_linux_sigreturn_tramp_frame = { SIGTRAMP_FRAME, 4, { - { ARM_SET_R7_SIGRETURN, -1 }, - { ARM_EABI_SYSCALL, -1 }, + { ARM_SET_R7_SIGRETURN, ULONGEST_MAX }, + { ARM_EABI_SYSCALL, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_sigreturn_init @@ -416,8 +416,8 @@ static struct tramp_frame arm_eabi_linux_rt_sigreturn_tramp_frame = { SIGTRAMP_FRAME, 4, { - { ARM_SET_R7_RT_SIGRETURN, -1 }, - { ARM_EABI_SYSCALL, -1 }, + { ARM_SET_R7_RT_SIGRETURN, ULONGEST_MAX }, + { ARM_EABI_SYSCALL, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_rt_sigreturn_init @@ -427,9 +427,9 @@ static struct tramp_frame thumb2_eabi_linux_sigreturn_tramp_frame = { SIGTRAMP_FRAME, 2, { - { THUMB2_SET_R7_SIGRETURN1, -1 }, - { THUMB2_SET_R7_SIGRETURN2, -1 }, - { THUMB2_EABI_SYSCALL, -1 }, + { THUMB2_SET_R7_SIGRETURN1, ULONGEST_MAX }, + { THUMB2_SET_R7_SIGRETURN2, ULONGEST_MAX }, + { THUMB2_EABI_SYSCALL, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_sigreturn_init @@ -439,9 +439,9 @@ static struct tramp_frame thumb2_eabi_linux_rt_sigreturn_tramp_frame = { SIGTRAMP_FRAME, 2, { - { THUMB2_SET_R7_RT_SIGRETURN1, -1 }, - { THUMB2_SET_R7_RT_SIGRETURN2, -1 }, - { THUMB2_EABI_SYSCALL, -1 }, + { THUMB2_SET_R7_RT_SIGRETURN1, ULONGEST_MAX }, + { THUMB2_SET_R7_RT_SIGRETURN2, ULONGEST_MAX }, + { THUMB2_EABI_SYSCALL, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_rt_sigreturn_init @@ -451,8 +451,8 @@ static struct tramp_frame arm_linux_restart_syscall_tramp_frame = { NORMAL_FRAME, 4, { - { ARM_OABI_SYSCALL_RESTART_SYSCALL, -1 }, - { ARM_LDR_PC_SP_12, -1 }, + { ARM_OABI_SYSCALL_RESTART_SYSCALL, ULONGEST_MAX }, + { ARM_LDR_PC_SP_12, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_restart_syscall_init @@ -462,8 +462,8 @@ static struct tramp_frame arm_kernel_linux_restart_syscall_tramp_frame = { NORMAL_FRAME, 4, { - { ARM_OABI_SYSCALL_RESTART_SYSCALL, -1 }, - { ARM_LDR_PC_SP_4, -1 }, + { ARM_OABI_SYSCALL_RESTART_SYSCALL, ULONGEST_MAX }, + { ARM_LDR_PC_SP_4, ULONGEST_MAX }, { TRAMP_SENTINEL_INSN } }, arm_linux_restart_syscall_init |