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
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
avr.h
bfin.h
cgen.h
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
cr16.h
cris.h
crx.h
d10v.h
d30v.h
dlx.h
ft32.h FT32: define macros for instruction recognition. 2015-09-28 11:23:54 -07:00
h8300.h
hppa.h
i370.h
i386.h
i860.h
i960.h
ia64.h
m68hc11.h
m68k.h
m88k.h
metag.h
mips.h
mmix.h
mn10200.h
mn10300.h
moxie.h
msp430-decode.h
msp430.h
nds32.h
nios2.h
nios2r1.h
nios2r2.h
np1.h
ns32k.h
pdp11.h
pj.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
pn.h
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
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
score-inst.h
sparc.h
spu-insns.h
spu.h
tahoe.h
tic4x.h
tic6x-control-registers.h
tic6x-insn-formats.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tic6x-opcode-table.h
tic6x.h
tic30.h
tic54x.h
tic80.h
tilegx.h
tilepro.h ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
v850.h
vax.h
visium.h
xgate.h