summaryrefslogtreecommitdiff
path: root/gdb/stap-probe.c
diff options
context:
space:
mode:
authorsergiodj <sergiodj>2012-07-18 16:20:36 +0000
committersergiodj <sergiodj>2012-07-18 16:20:36 +0000
commite135445a0e826c25a9bf8b954b288c47609c108e (patch)
tree400058cee76e8a0b53e86ee8b6b73645e9533b4c /gdb/stap-probe.c
parent5244e113595fa31473da2666dc24552bcd3b12d2 (diff)
downloadgdb-e135445a0e826c25a9bf8b954b288c47609c108e.tar.gz
2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
* probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'. * stap-probe.c (compile_probe_arg): Likewise.
Diffstat (limited to 'gdb/stap-probe.c')
-rw-r--r--gdb/stap-probe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 07f5a60e24b..91f3c302c1d 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1160,7 +1160,7 @@ compile_probe_arg (struct internalvar *ivar, struct agent_expr *expr,
int sel = (int) (uintptr_t) data;
struct probe *pc_probe;
const struct sym_probe_fns *pc_probe_fns;
- int n_probes;
+ int n_args;
/* SEL == -1 means "_probe_argc". */
gdb_assert (sel >= -1);
@@ -1175,20 +1175,20 @@ compile_probe_arg (struct internalvar *ivar, struct agent_expr *expr,
pc_probe_fns = pc_probe->objfile->sf->sym_probe_fns;
- n_probes = pc_probe_fns->sym_get_probe_argument_count (pc_probe);
+ n_args = pc_probe_fns->sym_get_probe_argument_count (pc_probe);
if (sel == -1)
{
value->kind = axs_rvalue;
value->type = builtin_type (expr->gdbarch)->builtin_int;
- ax_const_l (expr, n_probes);
+ ax_const_l (expr, n_args);
return;
}
gdb_assert (sel >= 0);
- if (sel >= n_probes)
+ if (sel >= n_args)
error (_("Invalid probe argument %d -- probe has %d arguments available"),
- sel, n_probes);
+ sel, n_args);
pc_probe_fns->sym_compile_to_ax (pc_probe, expr, value, sel);
}