]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: add client context
authorMark Wielaard <mark@klomp.org>
Sun, 17 Nov 2019 21:17:26 +0000 (22:17 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 23 Nov 2019 00:03:13 +0000 (01:03 +0100)
commitfa0226a78a101d26fd80c7e9e70a5f0aa6f9d1cc
treebe11c41ebeee936545633327bc76d48cdd0a8d61
parent8d5a05a7f006968653f813529be1df253a881040
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>
14 files changed:
debuginfod/debuginfod-client.c
debuginfod/debuginfod-find.c
debuginfod/debuginfod.cxx
debuginfod/debuginfod.h
debuginfod/libdebuginfod.map
doc/debuginfod_begin.3 [new file with mode: 0644]
doc/debuginfod_end.3 [new file with mode: 0644]
doc/debuginfod_find_debuginfo.3
libdwfl/Makefile.am
libdwfl/debuginfod-client.c [new file with mode: 0644]
libdwfl/dwfl_build_id_find_elf.c
libdwfl/dwfl_end.c
libdwfl/find-debuginfo.c
libdwfl/libdwflP.h