diff options
author | sergiodj <sergiodj> | 2013-07-24 19:50:31 +0000 |
---|---|---|
committer | sergiodj <sergiodj> | 2013-07-24 19:50:31 +0000 |
commit | 99f4358f8203da67f08fbcdd84f984709a50c68b (patch) | |
tree | 83a23824a94961e33f7abb3f15e40e72ddec904b /gdb/symfile.h | |
parent | 0387eeea5b1bd190f27e85448b9a8a93e2bd438a (diff) | |
download | gdb-99f4358f8203da67f08fbcdd84f984709a50c68b.tar.gz |
2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
* breakpoint.c (create_longjmp_master_breakpoint): Check if probe
interface can evaluate arguments. Fallback to the old mode if it
cannot.
(create_exception_master_breakpoint): Likewise.
* elfread.c (elf_can_evaluate_probe_arguments): New function.
(struct sym_probe_fns elf_probe_fns): Export function above to the
probe interface.
* probe.c (can_evaluate_probe_arguments): New function.
* probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
function pointer.
(can_evaluate_probe_arguments): New function prototype.
* solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
probe interface can evaluate arguments. Fallback to the old mode
if it cannot.
* stap-probe.c (stap_get_probe_argument_count): Check if probe
interface can evaluate arguments. Warning the user if it cannot.
(stap_can_evaluate_probe_arguments): New function.
(struct probe_ops stap_probe_ops): Export function above to the
probe interface.
* symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
New function pointer.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index c0e367d1d14..c36e6b3737c 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -315,6 +315,14 @@ struct sym_probe_fns 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. |