X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdbserver%2Flinux-low.cc;h=ecd892b01ea2c76ccabbb33c823d0b089a281747;hb=c23c939174445a65de521041509b038f5839a742;hp=1e516d6bc7097077b361591a1ad8594e3020f847;hpb=5c9eb2f2b53cb095dc6dbdd0654cec4ff9a53650;p=deliverable%2Fbinutils-gdb.git diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 1e516d6bc7..ecd892b01e 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -6620,19 +6620,20 @@ linux_process_target::done_accessing_memory () target_unpause_all (true); } -static int -linux_install_fast_tracepoint_jump_pad (CORE_ADDR tpoint, CORE_ADDR tpaddr, - CORE_ADDR collector, - CORE_ADDR lockaddr, - ULONGEST orig_size, - CORE_ADDR *jump_entry, - CORE_ADDR *trampoline, - ULONGEST *trampoline_size, - unsigned char *jjump_pad_insn, - ULONGEST *jjump_pad_insn_size, - CORE_ADDR *adjusted_insn_addr, - CORE_ADDR *adjusted_insn_addr_end, - char *err) +bool +linux_process_target::supports_fast_tracepoints () +{ + return the_low_target.install_fast_tracepoint_jump_pad != nullptr; +} + +int +linux_process_target::install_fast_tracepoint_jump_pad + (CORE_ADDR tpoint, CORE_ADDR tpaddr, CORE_ADDR collector, + CORE_ADDR lockaddr, ULONGEST orig_size, CORE_ADDR *jump_entry, + CORE_ADDR *trampoline, ULONGEST *trampoline_size, + unsigned char *jjump_pad_insn, ULONGEST *jjump_pad_insn_size, + CORE_ADDR *adjusted_insn_addr, CORE_ADDR *adjusted_insn_addr_end, + char *err) { return (*the_low_target.install_fast_tracepoint_jump_pad) (tpoint, tpaddr, collector, lockaddr, orig_size, @@ -6651,8 +6652,8 @@ linux_emit_ops (void) return NULL; } -static int -linux_get_min_fast_tracepoint_insn_len (void) +int +linux_process_target::get_min_fast_tracepoint_insn_len () { return (*the_low_target.get_min_fast_tracepoint_insn_len) (); } @@ -7455,10 +7456,8 @@ linux_get_hwcap2 (int wordsize) static linux_process_target the_linux_target; static process_stratum_target linux_target_ops = { - linux_install_fast_tracepoint_jump_pad, linux_emit_ops, linux_supports_disable_randomization, - linux_get_min_fast_tracepoint_insn_len, linux_qxfer_libraries_svr4, linux_supports_agent, #ifdef HAVE_LINUX_BTRACE