Tell update_global_location_list to insert breakpoints
authorPedro Alves <palves@redhat.com>
Mon, 22 Sep 2014 08:56:55 +0000 (09:56 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 22 Sep 2014 09:06:25 +0000 (10:06 +0100)
commit04086b458aebb38994486b09f4492645f03e971f
tree7f5718576280d5019698676b9212ffa29d7392a2
parent447023601a12d18573ea6acf75a3778a55d809e1
Tell update_global_location_list to insert breakpoints

This adds a new mode for update_global_location_list, that allows
callers saying "please insert breakpoints, even if
breakpoints_always_inserted_mode() is false".  This allows removing a
couple breakpoints_always_inserted_mode checks.

gdb/
2014-09-22  Pedro Alves  <palves@redhat.com>

* breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
(insert_breakpoints): Don't call insert_breakpoint_locations here.
Instead, pass UGLL_INSERT to update_global_location_list.
(update_global_location_list): Change parameter type from boolean
to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
breakpoints_should_be_inserted_now and handle UGLL_INSERT.
(create_solib_event_breakpoint_1): New, factored out from ...
(create_solib_event_breakpoint): ... this.
(create_and_insert_solib_event_breakpoint): Use
create_solib_event_breakpoint_1 instead of calling
insert_breakpoint_locations manually.
(update_global_location_list): Handle UGLL_INSERT.
gdb/ChangeLog
gdb/breakpoint.c