thread.c: cleanup breakpoint deletion
authorPedro Alves <palves@redhat.com>
Wed, 15 Oct 2014 19:18:32 +0000 (20:18 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 15 Oct 2014 19:18:32 +0000 (20:18 +0100)
commit5b834a0a5da717c7d1a8d539623e75f07a474e32
treed02c2842ce42a2e0d5c49b4b897398d11e0c27d0
parenta1fd2fa5999a17bc94fa8348326bc75ddb93476c
thread.c: cleanup breakpoint deletion

A little refactoring to reduce duplicate code.

gdb/
2014-10-15  Pedro Alves  <palves@redhat.com>

* thread.c (delete_thread_breakpoint): New function.
(delete_step_resume_breakpoint)
(delete_exception_resume_breakpoint): Use it.
(delete_at_next_stop): New function.
(clear_thread_inferior_resources): Use delete_at_next_stop.
gdb/ChangeLog
gdb/thread.c