diff options
author | Pedro Alves <pedro@palves.net> | 2022-05-06 23:18:57 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2022-05-20 20:41:00 +0100 |
commit | 3b003a6126610d16015c5aee997ed702788d3be6 (patch) | |
tree | 9fb033b3bb2e715ff1f13024e70c7fabae757f14 /gdb/breakpoint.h | |
parent | d837fd813d9c72ea7d06ef839b95857dcf0da811 (diff) | |
download | gdb-3b003a6126610d16015c5aee997ed702788d3be6.zip gdb-3b003a6126610d16015c5aee997ed702788d3be6.tar.gz gdb-3b003a6126610d16015c5aee997ed702788d3be6.tar.bz2 |
init_breakpoint_sal -> base_breakpoint::base_breakpoint
This converts init_breakpoint_sal to a base_breakpoint constructor.
It removes a use of init_raw_breakpoint.
To avoid manually adding a bunch of parameters to
new_breakpoint_from_type, and manually passing them down to the
constructors of a number of different base_breakpoint subclasses, make
new_breakpoint_from_type a variable template function.
Change-Id: I4cc24133ac4c292f547289ec782fc78e5bbe2510
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index fb2bbd7..40ba98b 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -861,6 +861,22 @@ struct base_breakpoint : public breakpoint { using breakpoint::breakpoint; + /* Create a breakpoint with SALS as locations. Use LOCATION as a + description of the location, and COND_STRING as condition + expression. If LOCATION is NULL then create an "address + location" from the address in the SAL. */ + base_breakpoint (struct gdbarch *gdbarch, bptype type, + gdb::array_view<const symtab_and_line> sals, + event_location_up &&location, + gdb::unique_xmalloc_ptr<char> filter, + gdb::unique_xmalloc_ptr<char> cond_string, + gdb::unique_xmalloc_ptr<char> extra_string, + enum bpdisp disposition, + int thread, int task, int ignore_count, + int from_tty, + int enabled, unsigned flags, + int display_canonical); + ~base_breakpoint () override = 0; void re_set () override; |