Cituji Pavel Březina <pbrezina(a)redhat.com>:
On 03/04/2013 12:59 AM, Koňař David wrote:
> Hello,
> I study at FIT VUT in Brno and as a part of my bachelor thesis I'm
> creating a GDB extension for tevent library. I would like to ask you for
> your suggestions - what functions of such a plug-in would you use? What
> would you consider useful? Number of requests in a queue? List of events
> in progress? ...
>
> So far I've implemented commands giving numbers of allocated events
> (divided according their types); showing state of specified request;
> watching for changes of requests' states.
>
> I would appreciate any comments.
>
> David Koňař
>
Hi,
thanks for sharing. I think the following will be useful:
- callback associated with given request (if any)
- what requests remains in the queue (more information then just
numbers)
- struct _state of given request and information about it's talloc
parent so we know the caller
- if tevent_req_post(ev, req) was called
- current state
- command to easily set breakpoints to all request functions, e.g.:
break tevent sdap_nested_group
expands to:
break sdap_nested_group_send
break sdap_nested_group_done
break sdap_nested_group_recv
maybe with a flag that would set breakpoints to all
sdap_nested_group_*
OK, I will implement those ideas.
Thanks for your responses and if something else would come up to your
mind, feel free to add it here.