From b4343d58f110e3c3f07544b9fb8c9509a9610a0e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 1 May 2022 12:21:51 +0200 Subject: [PATCH] Pass filename to elf_open_debugfile_by_buildid. This is not needed for anything at this moment, but it will become quite useful soon. --- libbacktrace/elf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libbacktrace/elf.cpp b/libbacktrace/elf.cpp index 8e6d75f3..bb59b9b8 100644 --- a/libbacktrace/elf.cpp +++ b/libbacktrace/elf.cpp @@ -874,6 +874,7 @@ elf_readlink (struct backtrace_state *state, const char *filename, static int elf_open_debugfile_by_buildid (struct backtrace_state *state, const char *buildid_data, size_t buildid_size, + const char *filename, backtrace_error_callback error_callback, void *data) { @@ -4443,7 +4444,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor, int d; d = elf_open_debugfile_by_buildid (state, buildid_data, buildid_size, - error_callback, data); + filename, error_callback, data); if (d >= 0) { int ret;