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: [RFC] design question re: watchpoint target methods


On Thu, Oct 29, 2009 at 07:58:17AM -0700, Joel Brobecker wrote:
> And to replace them by by a new operation:
> 
>     enum stopped_by_watchpoint (*to_thread_stopped_by_watchpoint)
>         (ptid_t ptid, CORE_ADDR *data_address_p);
> 
> Actually, I think that all target_ops operations should take a struct
> target_ops parameter, even if not needed, at least for consistency, but
> also to facilitate transitions if this parameter ever becomes needed
> later on.

This sounds sensible to me.

-- 
Daniel Jacobowitz
CodeSourcery


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