This simplifies the agent_expr constructor a bit, and removes the
destructor entirely.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
\f
/* Functions for building expressions. */
-agent_expr::agent_expr (struct gdbarch *gdbarch, CORE_ADDR scope)
-{
- this->gdbarch = gdbarch;
- this->scope = scope;
-
- this->tracing = 0;
- this->trace_string = 0;
-}
-
-agent_expr::~agent_expr ()
-{
-}
-
/* Append the low N bytes of VAL as an N-byte integer to the
expression X, in big-endian order. */
static void
struct agent_expr
{
/* Construct an empty agent expression. */
- explicit agent_expr (struct gdbarch *gdbarch, CORE_ADDR scope);
-
- ~agent_expr ();
+ agent_expr (struct gdbarch *gdbarch, CORE_ADDR scope)
+ : gdbarch (gdbarch),
+ scope (scope),
+ tracing (0)
+ { }
/* The bytes of the expression. */
gdb::byte_vector buf;
tracenz bytecode to record nonzero bytes, up to a length that
is the value of trace_string. */
- int trace_string;
+ int trace_string = 0;
};
/* An agent_expr owning pointer. */