https://github.com/JuliaLang/julia
Raw File
Tip revision: aa94fefa6bea8e40149df021f895b7c23047c00b authored by Valentin Churavy on 03 December 2019, 00:19:17 UTC
protect offsets
Tip revision: aa94fef
debuginfo.h
// This file is a part of Julia. License is MIT: https://julialang.org/license

// Declarations for debuginfo.cpp

extern int jl_DI_for_fptr(uint64_t fptr, uint64_t *symsize, int64_t *slide, int64_t *section_slide,
                      const object::ObjectFile **object,
                      llvm::DIContext **context);

extern bool jl_dylib_DI_for_fptr(size_t pointer, const object::ObjectFile **object, llvm::DIContext **context,
        int64_t *slide, int64_t *section_slide,
        bool onlySysImg, bool *isSysImg, void **saddr, char **name, char **filename);

#if JL_LLVM_VERSION >= 90000
static object::SectionedAddress makeAddress(uint64_t address)
{
    return object::SectionedAddress(address, object::SectionedAddress::UndefSection);
}
#else
static uint64_t makeAddress(uint64_t address)
{
    return address;
}
#endif
back to top