diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-07-14 12:47:40 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-07-14 12:47:40 +0200 |
commit | 40f4af2873b0631bc5f1d4ded2070abe2de2217c (patch) | |
tree | 5769d83c4809ba2814dc3576a7655d0f87a1dcae /gdb/symtab.h | |
parent | 053f805718fb3a77169afebba83cc665e9509e7b (diff) | |
download | gdb-40f4af2873b0631bc5f1d4ded2070abe2de2217c.zip gdb-40f4af2873b0631bc5f1d4ded2070abe2de2217c.tar.gz gdb-40f4af2873b0631bc5f1d4ded2070abe2de2217c.tar.bz2 |
ax-gdb: Remove unnecessary gdbarch parameters
In multiple places, we pass the gdbarch as an argument to some
functions, even though it's available in the agent_expr structure also
passed to the same functions. Remove these arguments and replace their
usage with accesses to agent_expr::gdbarch.
gdb/ChangeLog:
* dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
parameter.
* symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
Likewise.
* dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
parameter, use agent_expr::gdbarch instead, update function
calls.
(locexpr_tracepoint_var_ref): Likewise.
(loclist_tracepoint_var_ref): Likewise.
* ax-gdb.c (gen_trace_static_fields): Likewise.
(gen_traced_pop): Likewise.
(gen_frame_args_address): Likewise.
(gen_frame_locals_address): Likewise.
(gen_var_ref): Likewise.
(gen_struct_ref_recursive): Likewise.
(gen_static_field): Likewise.
(gen_maybe_namespace_elt): Likewise.
(gen_expr): Likewise.
(gen_trace_for_var): Likewise.
(gen_trace_for_expr): Likewise.
(gen_trace_for_return_address): Likewise.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 341deca..30d7eee 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -663,8 +663,8 @@ struct symbol_computed_ops the caller will generate the right code in the process of treating this as an lvalue or rvalue. */ - void (*tracepoint_var_ref) (struct symbol *symbol, struct gdbarch *gdbarch, - struct agent_expr *ax, struct axs_value *value); + void (*tracepoint_var_ref) (struct symbol *symbol, struct agent_expr *ax, + struct axs_value *value); /* Generate C code to compute the location of SYMBOL. The C code is emitted to STREAM. GDBARCH is the current architecture and PC is |