Use gdbarch for probe::get_argument_count
authorAlan Hayward <alan.hayward@arm.com>
Wed, 21 Aug 2019 14:24:02 +0000 (15:24 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Mon, 2 Sep 2019 12:58:48 +0000 (13:58 +0100)
commitfe01123efb30a273645dc194ae2100197f93a00a
tree517d24874f46e34adf2c554f39e2a60a27c29efc
parente661ef01e50a2cb38c006b0fe444a1b41bfc9400
Use gdbarch for probe::get_argument_count

The probe function get_argument_count does not need a frame, only
the current gdbarch.  Switch the code to pass gdbarch instead.
No functional changes.

gdb/ChangeLog:

* break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
* dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
* probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
(compile_probe_arg): Likewise.
* probe.h (get_argument_count): Likewise.
* solib-svr4.c (solib_event_probe_action): Likewise.
* stap-probe.c (stap_probe::get_argument_count): Likewise.
gdb/ChangeLog
gdb/break-catch-throw.c
gdb/dtrace-probe.c
gdb/probe.c
gdb/probe.h
gdb/solib-svr4.c
gdb/stap-probe.c