btrace: async
authorMarkus Metzger <markus.t.metzger@intel.com>
Thu, 27 Aug 2015 14:24:38 +0000 (16:24 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 18 Sep 2015 12:25:39 +0000 (14:25 +0200)
commita6b5be76f94664406def040d79ac8bc4d4aa8bd0
tree99c18650842cebe60a97d8e9c2e371915db6d83c
parentec71cc2fc6d319ebe4aebbe65a6a56ea1376200e
btrace: async

The record btrace target runs synchronous with GDB.  That is, GDB steps
resumed threads in record btrace's to_wait method.  Without GDB calling
to_wait, nothing happens 'on the target'.

Check for further expected events in to_wait before reporting the current
event and mark record btrace's async event handler in async mode.

gdb/
* record-btrace.c (record_btrace_maybe_mark_async_event): New.
(record_btrace_wait): Call record_btrace_maybe_mark_async_event.
gdb/ChangeLog
gdb/record-btrace.c