diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-01-18 20:14:54 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-18 20:47:55 -0500 |
commit | cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba (patch) | |
tree | c8445fbe78b1e5a2599e45689cf67e14938ceaf7 /sim/m32r/sim-if.c | |
parent | 7fd14d6f580eeed46ef4d6f04f6b5f2f1318c0f9 (diff) | |
download | binutils-cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba.zip binutils-cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba.tar.gz binutils-cc67f780ecdb8a5c50eaae9e04b7fc11ce23ddba.tar.bz2 |
sim: info: convert verbose field to a bool
The verbose argument has always been an int treated as a bool, so
convert it to an explicit bool. Further, update the API docs to
match the reality that the verbose value is actually used by some
of the internal modules.
Diffstat (limited to 'sim/m32r/sim-if.c')
-rw-r--r-- | sim/m32r/sim-if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/m32r/sim-if.c b/sim/m32r/sim-if.c index de8d870..d621e3f 100644 --- a/sim/m32r/sim-if.c +++ b/sim/m32r/sim-if.c @@ -36,7 +36,7 @@ #define M32R_DEFAULT_MEM_SIZE 0x2000000 /* 32M */ static void free_state (SIM_DESC); -static void print_m32r_misc_cpu (SIM_CPU *cpu, int verbose); +static void print_m32r_misc_cpu (SIM_CPU *cpu, bool verbose); /* Cover function of sim_state_free to free the cpu buffers as well. */ @@ -194,7 +194,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char * const *argv, /* PROFILE_CPU_CALLBACK */ static void -print_m32r_misc_cpu (SIM_CPU *cpu, int verbose) +print_m32r_misc_cpu (SIM_CPU *cpu, bool verbose) { SIM_DESC sd = CPU_STATE (cpu); char buf[20]; |