diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-17 20:13:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-17 20:17:01 +0100 |
commit | 9eaf53d98eced9ea70f411b9936b475c42e4d490 (patch) | |
tree | b30790640cf66c0474c8e3a40f5ba40eb367c75d /lib/tevent/tevent_internal.h | |
parent | 3a831e46204979550dc6ee7652cea6b8296f10c1 (diff) | |
download | samba-9eaf53d98eced9ea70f411b9936b475c42e4d490.tar.gz samba-9eaf53d98eced9ea70f411b9936b475c42e4d490.tar.bz2 samba-9eaf53d98eced9ea70f411b9936b475c42e4d490.zip |
tevent: store the location where a request was finished
This is very useful to find bugs.
You can use 'p *req' in gdb to show where
tevent_req_done(), tevent_req_error() or tevent_req_nomem()
was called.
metze
Diffstat (limited to 'lib/tevent/tevent_internal.h')
-rw-r--r-- | lib/tevent/tevent_internal.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h index 88bda244ac..eebf767067 100644 --- a/lib/tevent/tevent_internal.h +++ b/lib/tevent/tevent_internal.h @@ -85,7 +85,17 @@ struct tevent_req { * * This for debugging only. */ - const char *location; + const char *create_location; + + /** + * @brief The location where the request was finished + * + * This uses the __location__ macro via the tevent_req_done(), + * tevent_req_error() or tevent_req_nomem() macro. + * + * This for debugging only. + */ + const char *finish_location; /** * @brief The external state - will be queried by the caller |