aboutsummaryrefslogtreecommitdiff
path: root/libdwfl/dwfl_end.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2019-11-17 22:17:26 +0100
committerMark Wielaard <mark@klomp.org>2019-11-23 01:03:13 +0100
commitfa0226a78a101d26fd80c7e9e70a5f0aa6f9d1cc (patch)
treebe11c41ebeee936545633327bc76d48cdd0a8d61 /libdwfl/dwfl_end.c
parent8d5a05a7f006968653f813529be1df253a881040 (diff)
downloadelfutils-fa0226a78a101d26fd80c7e9e70a5f0aa6f9d1cc.tar.gz
debuginfod: add client context
Add a mandatory debuginfod_begin()/_end() call pair to manage a client object that represents persistent but non-global state. From libdwfl, dlopen the debuginfod.so client library early on. This hopefully makes sure that the code (and the libcurl.so dependency) is loaded before the program goes into multi-threaded mode. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdwfl/dwfl_end.c')
-rw-r--r--libdwfl/dwfl_end.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdwfl/dwfl_end.c b/libdwfl/dwfl_end.c
index 74ee9e07..4f6c722a 100644
--- a/libdwfl/dwfl_end.c
+++ b/libdwfl/dwfl_end.c
@@ -39,6 +39,8 @@ dwfl_end (Dwfl *dwfl)
if (dwfl == NULL)
return;
+ __libdwfl_debuginfod_end (dwfl->debuginfod);
+
if (dwfl->process)
__libdwfl_process_free (dwfl->process);