diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-06-23 15:02:04 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-02 11:58:28 +0100 |
commit | 924272f2bf5e398412473b14041f84397293c3d3 (patch) | |
tree | 79792d701b98bdc50c08fb28dd4dfa330e248ec0 /gdb/mi | |
parent | 48883ade64759b72aa876d6255796c8e66429be8 (diff) | |
download | gdb-924272f2bf5e398412473b14041f84397293c3d3.zip gdb-924272f2bf5e398412473b14041f84397293c3d3.tar.gz gdb-924272f2bf5e398412473b14041f84397293c3d3.tar.bz2 |
gdb/mi: some int to bool conversion
Just some simple int to bool conversion in mi_cmd_disassemble. There
should be no user visible changes after this commit.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-disas.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index c8e06cd..4f6e561 100644 --- a/gdb/mi/mi-cmd-disas.c +++ b/gdb/mi/mi-cmd-disas.c @@ -62,12 +62,12 @@ mi_cmd_disassemble (const char *command, char **argv, int argc) struct symtab *s; /* Which options have we processed ... */ - int file_seen = 0; - int line_seen = 0; - int num_seen = 0; - int start_seen = 0; - int end_seen = 0; - int addr_seen = 0; + bool file_seen = false; + bool line_seen = false; + bool num_seen = false; + bool start_seen = false; + bool end_seen = false; + bool addr_seen = false; /* ... and their corresponding value. */ char *file_string = NULL; @@ -107,27 +107,27 @@ mi_cmd_disassemble (const char *command, char **argv, int argc) { case FILE_OPT: file_string = oarg; - file_seen = 1; + file_seen = true; break; case LINE_OPT: line_num = atoi (oarg); - line_seen = 1; + line_seen = true; break; case NUM_OPT: how_many = atoi (oarg); - num_seen = 1; + num_seen = true; break; case START_OPT: low = parse_and_eval_address (oarg); - start_seen = 1; + start_seen = true; break; case END_OPT: high = parse_and_eval_address (oarg); - end_seen = 1; + end_seen = true; break; case ADDR_OPT: addr = parse_and_eval_address (oarg); - addr_seen = 1; + addr_seen = true; break; } } |