diff options
author | Tom Tromey <tom@tromey.com> | 2023-06-17 12:53:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-06-20 11:21:51 -0600 |
commit | b0b5ba6b7f2ac377842fe39a8d684282b865db40 (patch) | |
tree | bcca4f9141080aea1e38a2d6a5fc02de5c8eb259 /gdb/ax.h | |
parent | a2bbca9fa5e4e488ccbb8dddfa1d78ed03bad083 (diff) | |
download | gdb-b0b5ba6b7f2ac377842fe39a8d684282b865db40.zip gdb-b0b5ba6b7f2ac377842fe39a8d684282b865db40.tar.gz gdb-b0b5ba6b7f2ac377842fe39a8d684282b865db40.tar.bz2 |
Simplify agent_expr constructor
This simplifies the agent_expr constructor a bit, and removes the
destructor entirely.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/ax.h')
-rw-r--r-- | gdb/ax.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -81,9 +81,11 @@ enum agent_flaws 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; @@ -139,7 +141,7 @@ struct agent_expr 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. */ |