aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-15 09:57:44 -0700
committerTom Tromey <tom@tromey.com>2022-04-29 16:14:31 -0600
commit779dcceba7ee2af97a95d9978fc9ef949837a27a (patch)
tree8c649f654049d66c2db11fb4baee0e4768748e5a /gdb/mi
parent3a29292356cd26830dd771cf8ada376d132280a6 (diff)
downloadgdb-779dcceba7ee2af97a95d9978fc9ef949837a27a.zip
gdb-779dcceba7ee2af97a95d9978fc9ef949837a27a.tar.gz
gdb-779dcceba7ee2af97a95d9978fc9ef949837a27a.tar.bz2
Convert tracepoints to vtable ops
This converts tracepoints to use vtable_breakpoint_ops.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-break.c4
1 files changed, 2 insertions, 2 deletions
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)
{