LLVM 20.0.0git
JITLoaderGDB.h
Go to the documentation of this file.
1//===- JITLoaderGDB.h - Register objects via GDB JIT interface -*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Register objects for access by debuggers via the GDB JIT interface.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERGDB_H
14#define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERGDB_H
15
18#include <cstdint>
19
20// Keep in sync with gdb/gdb/jit.h
21extern "C" {
22
23typedef enum {
28
32 const char *symfile_addr;
34};
35
38 // This should be jit_actions_t, but we want to be specific about the
39 // bit-width.
43};
44}
45
48
50llvm_orc_registerJITLoaderGDBAllocAction(const char *Data, size_t Size);
51
52#endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERGDB_H
uint64_t Size
LLVM_ABI llvm::orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper(const char *Data, uint64_t Size)
jit_actions_t
Definition: JITLoaderGDB.h:23
@ JIT_UNREGISTER_FN
Definition: JITLoaderGDB.h:26
@ JIT_REGISTER_FN
Definition: JITLoaderGDB.h:25
@ JIT_NOACTION
Definition: JITLoaderGDB.h:24
LLVM_ABI llvm::orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBAllocAction(const char *Data, size_t Size)
Definition: JITLoaderGDB.h:29
struct jit_code_entry * prev_entry
Definition: JITLoaderGDB.h:31
const char * symfile_addr
Definition: JITLoaderGDB.h:32
uint64_t symfile_size
Definition: JITLoaderGDB.h:33
struct jit_code_entry * next_entry
Definition: JITLoaderGDB.h:30
uint32_t action_flag
Definition: JITLoaderGDB.h:40
struct jit_code_entry * relevant_entry
Definition: JITLoaderGDB.h:41
uint32_t version
Definition: JITLoaderGDB.h:37
struct jit_code_entry * first_entry
Definition: JITLoaderGDB.h:42