btrace: async support
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 2 Jun 2014 08:25:44 +0000 (10:25 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 4 Jun 2014 07:09:21 +0000 (09:09 +0200)
commit70ad5bfff3eeec62753ac4483bab8b7467dd3dd0
tree0dc152be80606b22072eb1503ebd74e1a93e8101
parent9f5a4cef68413e211bc765e969bf6778150231db
btrace: async support

Add support for async command execution.  This fixes the gdb.btrace tests.

* record-btrace.c: Include event-loop.h and inf-loop.h.
(record_btrace_resume_exec_dir)
(record_btrace_async_inferior_event_handler)
(record_btrace_handle_async_inferior_event): New.
(record_btrace_open): Create async event handler.
(record_btrace_close): Delete async event handler.
(record_btrace_resume): Set record_btrace_resume_exec_dir,
Mark async event handler.
(record_btrace_execution_direction): New.
(init_record_btrace_ops): Initialize to_execution_direction.
gdb/ChangeLog
gdb/record-btrace.c