agent_expr_up ax (new agent_expr (gdbarch, scope));
struct axs_value value;
- ax->tracing = 1;
+ ax->tracing = true;
ax->trace_string = trace_string;
gen_var_ref (ax.get (), &value, var);
agent_expr_up ax (new agent_expr (expr->gdbarch, scope));
struct axs_value value;
- ax->tracing = 1;
+ ax->tracing = true;
ax->trace_string = trace_string;
value.optimized_out = 0;
expr->op->generate_ax (expr, ax.get (), &value);
agent_expr_up ax (new agent_expr (expr->gdbarch, scope));
struct axs_value value;
- ax->tracing = 0;
+ ax->tracing = false;
value.optimized_out = 0;
expr->op->generate_ax (expr, ax.get (), &value);
agent_expr_up ax (new agent_expr (gdbarch, scope));
struct axs_value value;
- ax->tracing = 1;
+ ax->tracing = true;
ax->trace_string = trace_string;
gdbarch_gen_return_address (gdbarch, ax.get (), &value, scope);
int tem;
/* We're computing values, not doing side effects. */
- ax->tracing = 0;
+ ax->tracing = false;
/* Evaluate and push the args on the stack in reverse order,
for simplicity of collecting them on the target side. */
/* 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. */
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