diff options
author | gary <gary> | 2013-06-04 12:50:20 +0000 |
---|---|---|
committer | gary <gary> | 2013-06-04 12:50:20 +0000 |
commit | 736d95d04891f566adf9cc5363b964e82610a855 (patch) | |
tree | f403ed84838538adc7dc3a448bc9bff590e046fe /gdb/probe.h | |
parent | be33098462e01e61d6c9df8e3ad701763c8b0217 (diff) | |
download | gdb-736d95d04891f566adf9cc5363b964e82610a855.tar.gz |
2013-06-04 Gary Benson <gbenson@redhat.com>
* probe.h (get_probe_argument_count): New declaration.
(evaluate_probe_argument): Likewise.
* probe.c (get_probe_argument_count): New function.
(evaluate_probe_argument): Likewise.
(probe_safe_evaluate_at_pc): Use the above new functions.
Diffstat (limited to 'gdb/probe.h')
-rw-r--r-- | gdb/probe.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/probe.h b/gdb/probe.h index be1faa432ee..de07f506523 100644 --- a/gdb/probe.h +++ b/gdb/probe.h @@ -214,6 +214,16 @@ extern void info_probes_for_ops (char *arg, int from_tty, extern struct cmd_list_element **info_probes_cmdlist_get (void); +/* Return the argument count of the specified probe. */ + +extern unsigned get_probe_argument_count (struct probe *probe); + +/* Evaluate argument N of the specified probe. N must be between 0 + inclusive and get_probe_argument_count exclusive. */ + +extern struct value *evaluate_probe_argument (struct probe *probe, + unsigned n); + /* A convenience function that finds a probe at the PC in FRAME and evaluates argument N, with 0 <= N < number_of_args. If there is no probe at that location, or if the probe does not have enough arguments, |