[PATCH v9 21/29] record-btrace: provide xfer_partial target method

Pedro Alves palves@redhat.com
Thu Dec 19 19:13:00 GMT 2013


On 12/19/2013 04:44 PM, Markus Metzger wrote:
> +
> +	    /* We do not allow writing memory in general.  */
> +	    if (writebuf != NULL)
> +	      throw_error (NOT_AVAILABLE_ERROR,
> +			   _("This record target does not record memory."));

So printing globals errors out?

I thought you were going to return TARGET_XFER_E_UNAVAILABLE
anyway?  Did you try making raw_memory_xfer_partial return
immediately if ops->to_xfer_partial returns TARGET_XFER_E_UNAVAILABLE,
instead of proceeding to query the target beneath?

-- 
Pedro Alves



More information about the Gdb-patches mailing list