record-btrace: provide xfer_partial target method
authorMarkus Metzger <markus.t.metzger@intel.com>
Wed, 24 Apr 2013 11:24:11 +0000 (13:24 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 16 Jan 2014 12:06:14 +0000 (13:06 +0100)
commit633785ff2876e5bf03070a235d3e8cfe94cbf6bd
tree651cf8d1b64b09f804b5e47208d07574c05bd763
parent3db08215d47b576303a8cbaf6195b5f4a3bb9a13
record-btrace: provide xfer_partial target method

Provide the xfer_partial target method for the btrace record target.

Only allow memory read accesses to readonly memory while we're replaying,
except for inserting and removing breakpoints.

2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>

* record-btrace.c (record_btrace_xfer_partial)
(record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
(record_btrace_allow_memory_access): New.
(init_record_btrace_ops): Initialize new methods.
* target.c (raw_memory_xfer_partial): Bail out if target reports
that this memory is not available.
gdb/ChangeLog
gdb/record-btrace.c
gdb/target.c