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
17#include <cstdint>
18
19// Keep in sync with gdb/gdb/jit.h
20extern "C" {
21
22typedef enum {
27
31 const char *symfile_addr;
33};
34
37 // This should be jit_actions_t, but we want to be specific about the
38 // bit-width.
42};
43}
44
47
49llvm_orc_registerJITLoaderGDBAllocAction(const char *Data, size_t Size);
50
51#endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERGDB_H
uint64_t Size
jit_actions_t
Definition: JITLoaderGDB.h:22
@ JIT_UNREGISTER_FN
Definition: JITLoaderGDB.h:25
@ JIT_REGISTER_FN
Definition: JITLoaderGDB.h:24
@ JIT_NOACTION
Definition: JITLoaderGDB.h:23
llvm::orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper(const char *Data, uint64_t Size)
llvm::orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBAllocAction(const char *Data, size_t Size)
Definition: JITLoaderGDB.h:28
struct jit_code_entry * prev_entry
Definition: JITLoaderGDB.h:30
const char * symfile_addr
Definition: JITLoaderGDB.h:31
uint64_t symfile_size
Definition: JITLoaderGDB.h:32
struct jit_code_entry * next_entry
Definition: JITLoaderGDB.h:29
uint32_t action_flag
Definition: JITLoaderGDB.h:39
struct jit_code_entry * relevant_entry
Definition: JITLoaderGDB.h:40
uint32_t version
Definition: JITLoaderGDB.h:36
struct jit_code_entry * first_entry
Definition: JITLoaderGDB.h:41