This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 15/17] btrace: allow full memory and register access for non-replaying threads


On 09/09/2015 11:35 AM, Markus Metzger wrote:
> @@ -1314,7 +1314,7 @@ record_btrace_store_registers (struct target_ops *ops,
>    struct target_ops *t;
>  
>    if (!record_btrace_generating_corefile
> -      && record_btrace_is_replaying (ops, minus_one_ptid))
> +      && record_btrace_is_replaying (ops, inferior_ptid))
>      error (_("This record target does not allow writing registers."));
>  

I'd suggest also tweaking the error string.
"Cannot write registers of thread that is replaying" or some such.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]