record: do not allow record goto on a running thread
We can't start replaying if the selected thread is currently running. Throw an
error in this case.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
gdb/
* record.c: Include gdbthread.h
(require_not_running): New.
(record_goto, cmd_record_goto_begin, cmd_record_goto_end): Call
require_not_running.
Change-Id: I15888d668b6011217337cf3a63d3618fb044c023