diff options
author | sergiodj <sergiodj> | 2012-07-18 16:20:36 +0000 |
---|---|---|
committer | sergiodj <sergiodj> | 2012-07-18 16:20:36 +0000 |
commit | e135445a0e826c25a9bf8b954b288c47609c108e (patch) | |
tree | 400058cee76e8a0b53e86ee8b6b73645e9533b4c /gdb/probe.c | |
parent | 5244e113595fa31473da2666dc24552bcd3b12d2 (diff) | |
download | gdb-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/probe.c')
-rw-r--r-- | gdb/probe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/probe.c b/gdb/probe.c index 67482f29a00..e7cc891894f 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); |