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 /include/sim | |
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 'include/sim')
-rw-r--r-- | include/sim/sim.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sim/sim.h b/include/sim/sim.h index 8f33b09..4575269 100644 --- a/include/sim/sim.h +++ b/include/sim/sim.h @@ -20,6 +20,7 @@ #ifndef SIM_SIM_H #define SIM_SIM_H 1 +#include <stdbool.h> #include <stdint.h> #ifdef __cplusplus @@ -197,9 +198,9 @@ int sim_store_register (SIM_DESC sd, int regno, const void *buf, int length); /* Print whatever statistics the simulator has collected. - VERBOSE is currently unused and must always be zero. */ + When VERBOSE is enabled, extra details will be shown. */ -void sim_info (SIM_DESC sd, int verbose); +void sim_info (SIM_DESC sd, bool verbose); /* Return a memory map in XML format. |