diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-02 12:13:29 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-12-06 08:57:55 -0700 |
commit | 37fbcad0beb1a512efb5bc26071df5c12b5408cd (patch) | |
tree | 07f352feaeee97e1852aeeae25640bca8d4d8cd2 /gdb/symfile.h | |
parent | 16b5a7cbaee2764f3e1be6772dbe1156c28daf1d (diff) | |
download | gdb-37fbcad0beb1a512efb5bc26071df5c12b5408cd.zip gdb-37fbcad0beb1a512efb5bc26071df5c12b5408cd.tar.gz gdb-37fbcad0beb1a512efb5bc26071df5c12b5408cd.tar.bz2 |
remove some sym_probe_fns methods
While looking into the probe API, it seemed to me that there were a
number of methods in sym_probe_fns that were not needed. This patch
removes them.
Specifically, it seems to me that sym_probe_fns ought to be concerned
with the API for constructing the probes. Any method relating to some
aspect of an individual probe can be handled via the probe's own
vtable. That is, the double indirection here doesn't seem useful --
it certainly isn't in fact used, but also I couldn't think of a
potential use.
2013-12-06 Tom Tromey <tromey@redhat.com>
* break-catch-throw.c (fetch_probe_arguments): Use
get_probe_argument_count and evaluate_probe_argument.
* elfread.c (elf_get_probe_argument_count)
(elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
(elf_compile_to_ax): Remove.
(elf_probe_fns): Update.
* probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
(evaluate_probe_argument): Call method on probe, not via sym
functions.
* stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
evaluate_probe_argument.
(compile_probe_arg): Use get_probe_argument_count. Call method on
probe, not via sym functions.
* symfile-debug.c (debug_sym_get_probe_argument_count)
(debug_can_evaluate_probe_arguments)
(debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
Remove.
(debug_sym_probe_fns): Remove.
* symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
can_evaluate_probe_arguments, sym_evaluate_probe_argument,
sym_compile_to_ax>: Remove fields.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index 8e5909b..106a9d9 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -305,40 +305,6 @@ struct sym_probe_fns OBJFILE. */ VEC (probe_p) *(*sym_get_probes) (struct objfile *); - /* Return the number of arguments available to PROBE. PROBE will - have come from a call to this objfile's sym_get_probes method. - If you provide an implementation of sym_get_probes, you must - implement this method as well. */ - unsigned (*sym_get_probe_argument_count) (struct probe *probe); - - /* Return 1 if the probe interface can evaluate the arguments of probe - PROBE, zero otherwise. This function can be probe-specific, informing - whether only the arguments of PROBE can be evaluated, of generic, - informing whether the probe interface is able to evaluate any kind of - argument. If you provide an implementation of sym_get_probes, you must - implement this method as well. */ - int (*can_evaluate_probe_arguments) (struct probe *probe); - - /* Evaluate the Nth argument available to PROBE. PROBE will have - come from a call to this objfile's sym_get_probes method. N will - be between 0 and the number of arguments available to this probe. - FRAME is the frame in which the evaluation is done; the frame's - PC will match the address of the probe. If you provide an - implementation of sym_get_probes, you must implement this method - as well. */ - struct value *(*sym_evaluate_probe_argument) (struct probe *probe, - unsigned n); - - /* Compile the Nth probe argument to an agent expression. PROBE - will have come from a call to this objfile's sym_get_probes - method. N will be between 0 and the number of arguments - available to this probe. EXPR and VALUE are the agent expression - that is being updated. */ - void (*sym_compile_to_ax) (struct probe *probe, - struct agent_expr *expr, - struct axs_value *value, - unsigned n); - /* Relocate the probe section of OBJFILE. */ void (*sym_relocate_probe) (struct objfile *objfile, const struct section_offsets *new_offsets, |