diff options
author | Tom Tromey <tom@tromey.com> | 2023-06-17 12:56:54 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-06-20 11:21:51 -0600 |
commit | da25448d52654475792c8d05485d97205ba938ab (patch) | |
tree | aecbb3137e104018eb96376b68942982af4bbd0a /gdb/ax.h | |
parent | b0b5ba6b7f2ac377842fe39a8d684282b865db40 (diff) | |
download | fsf-binutils-gdb-da25448d52654475792c8d05485d97205ba938ab.zip fsf-binutils-gdb-da25448d52654475792c8d05485d97205ba938ab.tar.gz fsf-binutils-gdb-da25448d52654475792c8d05485d97205ba938ab.tar.bz2 |
Use bool for agent_expr::tracing
This changese agent_expr::tracing to have type bool, allowing inline
initialization and cleaning up the code a little.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/ax.h')
-rw-r--r-- | gdb/ax.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -83,8 +83,7 @@ struct agent_expr /* Construct an empty agent expression. */ agent_expr (struct gdbarch *gdbarch, CORE_ADDR scope) : gdbarch (gdbarch), - scope (scope), - tracing (0) + scope (scope) { } /* The bytes of the expression. */ @@ -132,10 +131,10 @@ struct agent_expr be available when the user later tries to evaluate the expression in GDB. - Setting the flag 'tracing' to non-zero enables the code that + Setting the flag 'tracing' to true enables the code that emits the trace bytecodes at the appropriate points. */ - unsigned int tracing : 1; + bool tracing = false; /* This indicates that pointers to chars should get an added tracenz bytecode to record nonzero bytes, up to a length that |