diff options
Diffstat (limited to 'contrib/llvm-project/llvm/tools/lli/ExecutionUtils.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/tools/lli/ExecutionUtils.cpp | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/contrib/llvm-project/llvm/tools/lli/ExecutionUtils.cpp b/contrib/llvm-project/llvm/tools/lli/ExecutionUtils.cpp index 55370ed40f2b..b6cc3bb174d3 100644 --- a/contrib/llvm-project/llvm/tools/lli/ExecutionUtils.cpp +++ b/contrib/llvm-project/llvm/tools/lli/ExecutionUtils.cpp @@ -8,6 +8,7 @@ #include "ExecutionUtils.h" +#include "llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/raw_ostream.h" @@ -15,34 +16,6 @@ #include <cstdint> #include <vector> -// Declarations follow the GDB JIT interface (version 1, 2009) and must match -// those of the DYLD used for testing. See: -// -// llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp -// llvm/lib/ExecutionEngine/GDBRegistrationListener.cpp -// -typedef enum { - JIT_NOACTION = 0, - JIT_REGISTER_FN, - JIT_UNREGISTER_FN -} jit_actions_t; - -struct jit_code_entry { - struct jit_code_entry *next_entry; - struct jit_code_entry *prev_entry; - const char *symfile_addr; - uint64_t symfile_size; -}; - -struct jit_descriptor { - uint32_t version; - // This should be jit_actions_t, but we want to be specific about the - // bit-width. - uint32_t action_flag; - struct jit_code_entry *relevant_entry; - struct jit_code_entry *first_entry; -}; - namespace llvm { template <typename... Ts> static void outsv(const char *Fmt, Ts &&...Vals) { @@ -61,6 +34,9 @@ static const char *actionFlagToStr(uint32_t ActionFlag) { return "<invalid action_flag>"; } +// Declarations follow the GDB JIT interface (version 1, 2009) and must match +// those of the DYLD used for testing. +// // Sample output: // // Reading __jit_debug_descriptor at 0x0000000000404048 |