From 779dcceba7ee2af97a95d9978fc9ef949837a27a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 15 Jan 2022 09:57:44 -0700 Subject: Convert tracepoints to vtable ops This converts tracepoints to use vtable_breakpoint_ops. --- gdb/mi/mi-cmd-break.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 05eac35..a5c7852 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -180,7 +180,7 @@ mi_cmd_break_insert_1 (int dprintf, const char *command, char **argv, int argc) symbol_name_match_type match_type = symbol_name_match_type::WILD; enum bptype type_wanted; event_location_up location; - struct breakpoint_ops *ops; + const struct breakpoint_ops *ops; int is_explicit = 0; struct explicit_location explicit_loc; std::string extra_string; @@ -322,7 +322,7 @@ mi_cmd_break_insert_1 (int dprintf, const char *command, char **argv, int argc) A simulator or an emulator could conceivably implement fast regular non-jump based tracepoints. */ type_wanted = hardware ? bp_fast_tracepoint : bp_tracepoint; - ops = &tracepoint_breakpoint_ops; + ops = breakpoint_ops_for_event_location (nullptr, true); } else if (dprintf) { -- cgit v1.1