cleanup and speed up (software_)breakpoint_inserted_here_p
authorPedro Alves <palves@redhat.com>
Mon, 29 Dec 2014 19:41:05 +0000 (19:41 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Jan 2015 14:40:11 +0000 (14:40 +0000)
commitf7ce857f51e33c66100bcf91b346ee1baf734e53
treee1a93b64c89156418acb486a082836ce647fb64d
parenta7b796db4fab28c2fa52bee86b97cf2b29d9c675
cleanup and speed up (software_)breakpoint_inserted_here_p

Factor out common code, and use the more efficient
ALL_BP_LOCATIONS_AT_ADDR.

gdb/
2015-01-09  Pedro Alves  <palves@redhat.com>

* breakpoint.c (bp_location_inserted_here_p): New function,
factored out from ...
(breakpoint_inserted_here_p): ... here.  Use
ALL_BP_LOCATIONS_AT_ADDR.
(software_breakpoint_inserted_here_p): Use
bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
gdb/ChangeLog
gdb/breakpoint.c