diff options
author | Pierre Langlois <pierre.langlois@arm.com> | 2015-07-30 12:40:49 +0100 |
---|---|---|
committer | Pierre Langlois <pierre.langlois@arm.com> | 2015-07-30 12:40:49 +0100 |
commit | 0ea6402e6ce0af0623f0cfd180b626c7ccc41891 (patch) | |
tree | ea304fabc0b6d614c36f220b174f0aca5dd1c1e1 /gdb/ChangeLog | |
parent | a8484f9612fc5b7d2b762b6fec950faa0fcd1483 (diff) | |
download | gdb-0ea6402e6ce0af0623f0cfd180b626c7ccc41891.zip gdb-0ea6402e6ce0af0623f0cfd180b626c7ccc41891.tar.gz gdb-0ea6402e6ce0af0623f0cfd180b626c7ccc41891.tar.bz2 |
[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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8dee2da..e2579fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +2015-07-30 Pierre Langlois <pierre.langlois@arm.com> + + * 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. + 2015-07-29 Simon Marchi <simon.marchi@ericsson.com> * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th |