diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2019-05-16 16:17:30 -0400 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2019-05-16 16:26:29 -0400 |
commit | f1bb75ab2a68b7d0878966f5a945eb7d33a48280 (patch) | |
tree | d1d7b95a91359d612bde6c5c327bcc33b394be32 /gdb/ChangeLog | |
parent | 3ca58cdea13ddad01d70aa170eb419903b241b94 (diff) | |
download | gdb-f1bb75ab2a68b7d0878966f5a945eb7d33a48280.zip gdb-f1bb75ab2a68b7d0878966f5a945eb7d33a48280.tar.gz gdb-f1bb75ab2a68b7d0878966f5a945eb7d33a48280.tar.bz2 |
Slightly improve logic of some operations on stap-probe.c
This patch contains three very small improvement on the logic of some
operations we do on stap-probe.c. They don't change what the code
does.
Pushed as obvious.
gdb/ChangeLog:
2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
* stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
'-')" and "else if".
(stap_parse_single_operand): Join checks for
"gdbarch_stap_parse_special_token_p" and
"gdbarch_stap_parse_special_token" in the same "if" statement.
Invert check when verifying for operation on register
displacement.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3389167..c89b703 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com> + * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg == + '-')" and "else if". + (stap_parse_single_operand): Join checks for + "gdbarch_stap_parse_special_token_p" and + "gdbarch_stap_parse_special_token" in the same "if" statement. + Invert check when verifying for operation on register + displacement. + +2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com> + * stap-probe.c (stap_get_opcode): Update comment. (stap_get_expected_argument_type): Likewise. (handle_stap_probe): Likewise. |