forked from Imagelibrary/binutils-gdb
gdb/gdbserver:
* ax.h (struct eval_agent_expr_context): New. (gdb_eval_agent_expr): Update declaration. * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and TFRAME. Add new argument CTX. * server.h (struct eval_agent_expr_context): Declare. (agent_mem_read, agent_tsv_read): Update declaration. (agent_mem_read_string): Likewise. * tracepoint.c (eval_tracepoint_agent_expr): Remove. (add_traceframe_block): Add new argument TPOINT. Increase TPOINT->traceframe_usage. (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of eval_tracepoint_agent_expr. (condition_true_at_tracepoint): Likewise. (agent_mem_read): Remove argument TFRAME. Add argument CTX. (agent_mem_read_string, agent_tsv_read): Likewise. Callers update. gdb/testsuite: * gdb.trace/infotrace.exp: Check 'traceframe usage' in the output of 'info tracepoints'. * gdb.trace/disconnected-tracing.exp (disconnected_tracing): Likewise. * gdb.trace/tstatus.exp (run_trace_experiment): Likewise. * gdb.trace/disconnected-tracing.c (struct foo): New.
This commit is contained in:
@@ -439,11 +439,12 @@ void gdb_agent_about_to_close (int pid);
|
||||
#endif
|
||||
|
||||
struct traceframe;
|
||||
struct eval_agent_expr_context;
|
||||
|
||||
/* Do memory copies for bytecodes. */
|
||||
/* Do the recording of memory blocks for actions and bytecodes. */
|
||||
|
||||
int agent_mem_read (struct traceframe *tframe,
|
||||
int agent_mem_read (struct eval_agent_expr_context *ctx,
|
||||
unsigned char *to, CORE_ADDR from,
|
||||
ULONGEST len);
|
||||
|
||||
@@ -452,8 +453,8 @@ void agent_set_trace_state_variable_value (int num, LONGEST val);
|
||||
|
||||
/* Record the value of a trace state variable. */
|
||||
|
||||
int agent_tsv_read (struct traceframe *tframe, int n);
|
||||
int agent_mem_read_string (struct traceframe *tframe,
|
||||
int agent_tsv_read (struct eval_agent_expr_context *ctx, int n);
|
||||
int agent_mem_read_string (struct eval_agent_expr_context *ctx,
|
||||
unsigned char *to,
|
||||
CORE_ADDR from,
|
||||
ULONGEST len);
|
||||
|
||||
Reference in New Issue
Block a user