mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Get descriptors using debuginfod, if not available otherwise.
This commit is contained in:
parent
4549671caa
commit
4559120821
@ -70,6 +70,10 @@ POSSIBILITY OF SUCH DAMAGE. */
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef TRACY_DEBUGINFOD
|
||||||
|
int GetDebugInfoDescriptor( const char* buildid_data, size_t buildid_size );
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_DECL_STRNLEN) || !HAVE_DECL_STRNLEN
|
#if !defined(HAVE_DECL_STRNLEN) || !HAVE_DECL_STRNLEN
|
||||||
|
|
||||||
/* If strnlen is not declared, provide our own version. */
|
/* If strnlen is not declared, provide our own version. */
|
||||||
@ -913,7 +917,14 @@ elf_open_debugfile_by_buildid (struct backtrace_state *state,
|
|||||||
That seems kind of pointless to me--why would it have the right
|
That seems kind of pointless to me--why would it have the right
|
||||||
name but not the right build ID?--so skipping the check. */
|
name but not the right build ID?--so skipping the check. */
|
||||||
|
|
||||||
|
#ifdef TRACY_DEBUGINFOD
|
||||||
|
if (ret == -1)
|
||||||
|
return GetDebugInfoDescriptor( buildid_data, buildid_size );
|
||||||
|
else
|
||||||
|
return ret;
|
||||||
|
#else
|
||||||
return ret;
|
return ret;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to open a file whose name is PREFIX (length PREFIX_LEN)
|
/* Try to open a file whose name is PREFIX (length PREFIX_LEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user