aboutsummaryrefslogtreecommitdiff
path: root/gdb/probe.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2012-07-18 16:20:43 +0000
committerSergio Durigan Junior <sergiodj@redhat.com>2012-07-18 16:20:43 +0000
commit2b963b6863da340923061c856584451a6c3d5b71 (patch)
tree260ee3f6c3fa25adc607fe6c9d767529e37d192d /gdb/probe.c
parent6bac74738704531ac5da95ed65795d8b8b89e200 (diff)
downloadgdb-2b963b6863da340923061c856584451a6c3d5b71.zip
gdb-2b963b6863da340923061c856584451a6c3d5b71.tar.gz
gdb-2b963b6863da340923061c856584451a6c3d5b71.tar.bz2
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/probe.c')
-rw-r--r--gdb/probe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/probe.c b/gdb/probe.c
index 67482f2..e7cc891 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -637,7 +637,7 @@ probe_safe_evaluate_at_pc (struct frame_info *frame, unsigned n)
{
struct probe *probe;
const struct sym_probe_fns *probe_fns;
- unsigned n_probes;
+ unsigned n_args;
probe = find_probe_by_pc (get_frame_pc (frame));
if (!probe)
@@ -648,9 +648,9 @@ probe_safe_evaluate_at_pc (struct frame_info *frame, unsigned n)
gdb_assert (probe->objfile->sf->sym_probe_fns != NULL);
probe_fns = probe->objfile->sf->sym_probe_fns;
- n_probes = probe_fns->sym_get_probe_argument_count (probe);
+ n_args = probe_fns->sym_get_probe_argument_count (probe);
- if (n >= n_probes)
+ if (n >= n_args)
return NULL;
return probe_fns->sym_evaluate_probe_argument (probe, n);