aboutsummaryrefslogtreecommitdiff
path: root/gdb/probe.h
diff options
context:
space:
mode:
authorGary Benson <gary@redhat.com>2013-06-04 12:50:21 +0000
committerGary Benson <gary@redhat.com>2013-06-04 12:50:21 +0000
commit9ee6a5acd5d83655e5af4a79c83f31dfce0a2a8e (patch)
treec4505fe5e7f2dcd00eda4fea3402d7e6b812f412 /gdb/probe.h
parent845d47080b7d7e068e4ec3d11fe6e27b403ac6e3 (diff)
downloadgdb-9ee6a5acd5d83655e5af4a79c83f31dfce0a2a8e.zip
gdb-9ee6a5acd5d83655e5af4a79c83f31dfce0a2a8e.tar.gz
gdb-9ee6a5acd5d83655e5af4a79c83f31dfce0a2a8e.tar.bz2
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/probe.h b/gdb/probe.h
index be1faa4..de07f50 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,