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 03/32] introduce async_callback_ftype


> /* The type of the callback to the to_async method.  */
> 
> typedef void async_callback_ftype (enum inferior_event_type event_type,
> 				   void *context);
> "context" is used in several places related to this.  OTOH the only
> non-NULL function pointer ever passed to to_async is
> 'inferior_event_handler', which names the second argument "client_data".
> I found them equally clear; particularly once I noticed that all
> existing calls pass context==NULL :)

That looks good to me, thank you!

> As for documentation, I think the docs should be comments before each
> to_* method.

That works for me.

> target.h has been laxly maintained in this regard.

We're getting better at this, though :-). I think we generally
understand better the value of providing good documentation.

Thanks, Tom.
-- 
Joel


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