diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-10 15:41:25 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-04-12 11:16:19 -0600 |
commit | d28cd78ad820e3a40ac5064b6a30f3a12ce70bf0 (patch) | |
tree | b89ce13dcab2b791cde8073a77fddc53dd06083f /gdb/breakpoint.h | |
parent | 711799d513206f6d8fc3dbfa81dcdecdb2ce6ece (diff) | |
download | gdb-d28cd78ad820e3a40ac5064b6a30f3a12ce70bf0.zip gdb-d28cd78ad820e3a40ac5064b6a30f3a12ce70bf0.tar.gz gdb-d28cd78ad820e3a40ac5064b6a30f3a12ce70bf0.tar.bz2 |
Change breakpoint event locations to event_location_up
This is a follow-up to an earlier patch. It changes breakpoint's
location and location_range_end members to be of type
event_location_up, then fixes up the users.
gdb/ChangeLog
2017-04-12 Tom Tromey <tom@tromey.com>
* remote.c (remote_download_tracepoint): Update.
* python/py-breakpoint.c (bppy_get_location): Update.
* guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
(gdbscm_breakpoint_location): Update.
* elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
* breakpoint.h (struct breakpoint) <location, location_range_end>:
Change type to event_location_up.
* breakpoint.c (create_overlay_event_breakpoint)
(create_longjmp_master_breakpoint)
(create_std_terminate_master_breakpoint)
(create_exception_master_breakpoint)
(breakpoint_event_location_empty_p, print_breakpoint_location)
(print_one_breakpoint_location, create_thread_event_breakpoint)
(init_breakpoint_sal, create_breakpoint)
(print_recreate_ranged_breakpoint, break_range_command)
(init_ada_exception_breakpoint, say_where): Update.
(base_breakpoint_dtor): Don't call delete_event_location.
(bkpt_print_recreate, tracepoint_print_recreate)
(dprintf_print_recreate, update_static_tracepoint)
(breakpoint_re_set_default): Update.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 1301fb4..f5c2751 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -26,6 +26,7 @@ #include "command.h" #include "break-common.h" #include "probe.h" +#include "location.h" #include <vector> struct value; @@ -38,7 +39,6 @@ struct bpstats; struct bp_location; struct linespec_result; struct linespec_sals; -struct event_location; /* Why are we removing the breakpoint from the target? */ @@ -716,8 +716,8 @@ struct breakpoint non-thread-specific ordinary breakpoints this is NULL. */ struct program_space *pspace; - /* Location we used to set the breakpoint (malloc'd). */ - struct event_location *location; + /* Location we used to set the breakpoint. */ + event_location_up location; /* The filter that should be passed to decode_line_full when re-setting this breakpoint. This may be NULL, but otherwise is @@ -725,8 +725,8 @@ struct breakpoint char *filter; /* For a ranged breakpoint, the location we used to find - the end of the range (malloc'd). */ - struct event_location *location_range_end; + the end of the range. */ + event_location_up location_range_end; /* Architecture we used to set the breakpoint. */ struct gdbarch *gdbarch; |