btrace: extract the breakpoint check from record_btrace_step_thread
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 25 Aug 2015 08:49:11 +0000 (10:49 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 18 Sep 2015 12:20:44 +0000 (14:20 +0200)
commit3c615f99d3923df7dfa94c6587733c682efbbc78
tree2c9f7250c68a97e2b84a7ec39702a11abdf45668
parent987e68b1a38ad9116f309bff006e794c7e6f85e8
btrace: extract the breakpoint check from record_btrace_step_thread

There are two places where record_btrace_step_thread checks for a breakpoint
at the current replay position.  Move this code into its own function.

gdb/
* record-btrace.c (record_btrace_replay_at_breakpoint): New.
(record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
gdb/ChangeLog
gdb/record-btrace.c