[AArch64] Rename boolean arguments in decoding functions
authorPierre Langlois <pierre.langlois@arm.com>
Thu, 30 Jul 2015 11:40:49 +0000 (12:40 +0100)
committerPierre Langlois <pierre.langlois@arm.com>
Thu, 30 Jul 2015 11:40:49 +0000 (12:40 +0100)
commit0ea6402e6ce0af0623f0cfd180b626c7ccc41891
treeea304fabc0b6d614c36f220b174f0aca5dd1c1e1
parenta8484f9612fc5b7d2b762b6fec950faa0fcd1483
[AArch64] Rename boolean arguments in decoding functions

This patch cleans up the decoding functions using booleans when they can
decode two instructions.  The boolean argument is used to know which of
the two instructions was decoded.

The instructions affected are BR/BLR, B/BL, CBZ/CBNZ and TBZ/TBNZ.

These arguments would be named after a named bit in the instruction
encoding, this patch renames them to 'is_XXX'.  Furthermore, the
'unsigned' type would be used to describe a boolean while
aarch64_decode_cb would use 'int' (see the 'is64' argument).  This patch
makes all booleans be 'int' and decoded bitfields be 'unsigned'.

gdb/ChangeLog:

* aarch64-tdep.c (decode_b): Rename link argument to is_bl.
Change its type to int *.
(decode_br): Rename link argument to is_blr.  Change its type to
int *.
(decode_cb): Rename op argument to is_cbnz.  Change its type to
int *.
(decode_tb): Rename op argument to is_tbnz.  Change its type to
int *.  Set is_tbnz to either 1 or 0.
(aarch64_analyze_prologue): Change type of is_link to int.  Add
new variables is_cbnz and is_tbnz.  Adjust call to
aarch64_decode_cb and aarch64_decode_tb.
gdb/ChangeLog
gdb/aarch64-tdep.c
This page took 0.054489 seconds and 4 git commands to generate.