Home GnuPG

Add a tracing framework.
a52f12cc1879Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add a tracing framework.

* src/init.c (trace_save_errno, trace_arg_module)
(trace_arg_file, trace_arg_line): New module vars.
(do_internal_trace): New.
(_gpgrt_internal_trace_printf): New.
(_gpgrt_internal_trace): New.
(_gpgrt_internal_trace_errno): New.
(_gpgrt_internal_trace_end): New.
* src/gpgrt-int.h (trace): New macro.
(trace_errno): New macro.
(trace_start): New macro.
(trace_append): New macro.
(trace_finish): New macro.

We want to be abale to use libgpg-error also with pre-c99 compilers
and thus we can use the VA_ARGS but resort to the common macro
trick.

Details

Provenance
wernerAuthored on Feb 27 2017, 12:22 AM
Parents
rEbe49b02a56e8: Rename internal functions of estream.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rEa52f12cc1879: Add a tracing framework. (authored by Werner Koch <wk@gnupg.org>).Feb 27 2017, 12:22 AM