binutils-gdb/gdb/arch
Luis Machado 5382f97180 Fix shifting of negative value
When UBSan is enabled, I noticed runtime errors complaining of shifting
of negative numbers.

This patch fixes this by reusing existing macros from the ARM port.

It also removes unused macros from AArch64's port.

gdb/ChangeLog:

2020-12-04  Luis Machado  <luis.machado@linaro.org>

	* aarch64-tdep.c (submask, bit, bits): Remove.
	* arch/aarch64-insn.c (extract_signed_bitfield): Remove.
	(aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
	(aarch64_decode_cb, aarch64_decode_tb)
	(aarch64_decode_ldr_literal): Use sbits to extract a signed
	immediate.
	* arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
2020-12-04 11:17:00 -03:00
..
aarch32.c gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
aarch32.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
aarch64-insn.c Fix shifting of negative value 2020-12-04 11:17:00 -03:00
aarch64-insn.h Fix shifting of negative value 2020-12-04 11:17:00 -03:00
aarch64.c gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
aarch64.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
amd64.c gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
amd64.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
arc.c gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
arc.h gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
arm-get-next-pcs.c gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
arm-get-next-pcs.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
arm-linux.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
arm-linux.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
arm.c gdb, gdbserver, gdbsupport: fix leading space vs tabs issues 2020-11-02 10:28:45 -05:00
arm.h gnulib: import count-one-bits module and use it 2020-02-14 14:41:07 -05:00
i386.c gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
i386.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ppc-linux-common.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ppc-linux-common.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ppc-linux-tdesc.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
riscv.c gdb/riscv: rewrite target description validation, add rv32e support 2020-12-02 18:30:42 +00:00
riscv.h gdb/riscv: rewrite target description validation, add rv32e support 2020-12-02 18:30:42 +00:00
tic6x.c gdb: Delay releasing target_desc_up in more cases 2020-10-09 11:45:44 +01:00
tic6x.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
xtensa.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00