Introduce 'enum remove_bp_reason'
authorPedro Alves <palves@redhat.com>
Wed, 10 Aug 2016 22:03:29 +0000 (23:03 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 10 Aug 2016 22:03:29 +0000 (23:03 +0100)
commitb2b6a7dab91de9a616e1d76c869d127c5752b9e6
tree14c09d701e0b5190490e8336d32a69f8aea6fba7
parent834c0d033bdade640aab149d0d4bd7b41dcb16af
Introduce 'enum remove_bp_reason'

Makes the code more obvious.

gdb/ChangeLog:
2016-08-10  Pedro Alves  <palves@redhat.com>

PR gdb/19187
* breakpoint.c (insertion_state_t): Delete.
(enum remove_bp_reason): New.
(detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
Adjust to use enum remove_bp_reason instead of insertion_state_t.
gdb/ChangeLog
gdb/breakpoint.c