binutils-gdb/include/opcode
Yao Qi 43cdf5aeb8 Pass noaliases_p to aarch64_decode_insn
Nowadays aarch64_decode_insn is a public interface used by both
opcodes and gdb.  However, its behaviour relies on a global variable
no_aliases, which isn't a good practise.  On the other hand, In default,
no_aliases is zero, but in GDB, we do want no alias when decoding
instructions for prologue analysis (patches to be posted), so that we
can handle both instructions "add" and "mov" (an alias of "add") as
"add".  The code in GDB can be simplified.

This patch adds a new argument in aarch64_decode_insn, and pass no_aliases
to it.  In GDB side, always pass 1 to it.

include/opcode:

2015-10-28  Yao Qi  <yao.qi@linaro.org>

	* aarch64.h (aarch64_decode_insn): Update declaration.

opcodes:

2015-10-28  Yao Qi  <yao.qi@linaro.org>

	* aarch64-dis.c	(aarch64_decode_insn): Add one argument
	noaliases_p.  Update comments.  Pass noaliases_p rather than
	no_aliases to aarch64_opcode_decode.
	(print_insn_aarch64_word): Pass no_aliases to
	aarch64_decode_insn.

gdb:

2015-10-28  Yao Qi  <yao.qi@linaro.org>

	* aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
	aarch64_decode_insn.
2015-10-28 14:22:57 +00:00
..
aarch64.h Pass noaliases_p to aarch64_decode_insn 2015-10-28 14:22:57 +00:00
alpha.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
arc-func.h New ARC implementation. 2015-10-07 14:20:19 +01:00
arc.h New ARC implementation. 2015-10-07 14:20:19 +01:00
arm.h [ARM] Support correctly spelled ARMv6KZ architecture names 2015-07-21 09:43:35 +01:00
avr.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
bfin.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
cgen.h Wrap a few opcodes headers in extern "C" for C++ 2015-02-19 22:45:47 +00:00
ChangeLog Pass noaliases_p to aarch64_decode_insn 2015-10-28 14:22:57 +00:00
ChangeLog-9103 Add copyright notices 2012-12-10 12:48:03 +00:00
convex.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
cr16.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
cris.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
crx.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
d10v.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
d30v.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dlx.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ft32.h FT32: define macros for instruction recognition. 2015-09-28 11:23:54 -07:00
h8300.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
hppa.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i370.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i386.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i860.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i960.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ia64.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
m68hc11.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
m68k.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
m88k.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
metag.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mips.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mmix.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mn10200.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mn10300.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
moxie.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
msp430-decode.h Wrap a few opcodes headers in extern "C" for C++ 2015-02-19 22:45:47 +00:00
msp430.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
nds32.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
nios2.h Opcodes and assembler support for Nios II R2 2015-07-01 16:08:03 -07:00
nios2r1.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
nios2r2.h Opcodes and assembler support for Nios II R2 2015-07-01 16:08:03 -07:00
np1.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ns32k.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pdp11.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pj.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pn.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ppc.h Fix compile time warnings generated when compiling with clang. 2015-09-23 18:05:16 +01:00
pyr.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
rl78.h Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
rx.h Enhance the RX disassembler to detect and report bad instructions. 2015-09-22 17:21:13 +01:00
s390.h Add support for extensions in the .machine pseudoop on S/390, e.g. ".machine zEC12+nohtm+vx" 2015-09-29 13:22:07 +01:00
score-datadep.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
score-inst.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
sparc.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
spu-insns.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
spu.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tahoe.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic4x.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic6x-control-registers.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic6x-insn-formats.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic6x-opcode-table.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic6x.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic30.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic54x.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic80.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tilegx.h Wrap a few opcodes headers in extern "C" for C++ 2015-02-19 22:45:47 +00:00
tilepro.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
v850.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
vax.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
visium.h Make register name tables in visium.h static in order to prevent multiple definitions. 2015-09-09 14:50:08 +01:00
xgate.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30