Bool-ify stap-probe.c and stap-related code on i386-tdep.c
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 16 May 2019 19:58:55 +0000 (15:58 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 16 May 2019 20:26:29 +0000 (16:26 -0400)
commitaf2d9beee989c7b75de849d9c08629a1e3f567ad
tree7c56817fa8d548f4d6ace1456f1285370a63d943
parent61c9c4212daa0be96503b9069da387aebf9cba04
Bool-ify stap-probe.c and stap-related code on i386-tdep.c

This simple patch converts a bunch of "int"s to "bool" on stap-probe.c
and on the stap-related code present on i386-tdep.c.

Pushed as obvious (+ I'm the maintainer of this code).

gdb/ChangeLog:
2019-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>

* i386-tdep.c (i386_stap_parse_special_token_triplet): Change
return type to 'bool'.  Adjust comment.  Use 'bool' when
appropriate.
(i386_stap_parse_special_token_three_arg_disp): Likewise.
* stap-probe.c (stap_parse_argument_1): Likewise.
(stap_is_operator): Likewise.
(stap_is_generic_prefix): Likewise.
(stap_is_register_prefix): Likewise.
(stap_is_register_indirection_prefix): Likewise.
(stap_is_integer_prefix): Likewise.
(stap_generic_check_suffix): Likewise.
(stap_check_integer_suffix): Likewise.
(stap_check_register_suffix): Likewise.
(stap_check_register_indirection_suffix): Likewise.
(stap_parse_register_operand): Likewise.
(stap_parse_single_operand): Likewise.
(stap_parse_argument_1): Likewise.
(stap_probe::get_argument_count): Likewise.
(stap_is_operator): Likewise.
gdb/ChangeLog
gdb/i386-tdep.c
gdb/stap-probe.c
This page took 0.027117 seconds and 4 git commands to generate.