mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Pass filename to elf_open_debugfile_by_buildid.
This is not needed for anything at this moment, but it will become quite useful soon.
This commit is contained in:
parent
89778fee9a
commit
b4343d58f1
@ -874,6 +874,7 @@ elf_readlink (struct backtrace_state *state, const char *filename,
|
|||||||
static int
|
static int
|
||||||
elf_open_debugfile_by_buildid (struct backtrace_state *state,
|
elf_open_debugfile_by_buildid (struct backtrace_state *state,
|
||||||
const char *buildid_data, size_t buildid_size,
|
const char *buildid_data, size_t buildid_size,
|
||||||
|
const char *filename,
|
||||||
backtrace_error_callback error_callback,
|
backtrace_error_callback error_callback,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
@ -4443,7 +4444,7 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
|
|||||||
int d;
|
int d;
|
||||||
|
|
||||||
d = elf_open_debugfile_by_buildid (state, buildid_data, buildid_size,
|
d = elf_open_debugfile_by_buildid (state, buildid_data, buildid_size,
|
||||||
error_callback, data);
|
filename, error_callback, data);
|
||||||
if (d >= 0)
|
if (d >= 0)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user