GDB: trad-frame: Store length of value_bytes in trad_frame_saved_reg
[binutils-gdb.git] / gdb / testsuite / gdb.base / jit-protocol.h
blob3e85c199c9f0a004a9fe1f5644d0b291d9da1386
1 /* Copyright (C) 2009-2024 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 #ifdef JIT_H
19 #error "We don't include jit.h directly since we'd like the jit-reader unit \
20 tests to break if we make ABI incompatible changes to the structures \
21 re-declared here."
22 #endif
24 #ifndef JIT_PROTOCOL_H
25 #define JIT_PROTOCOL_H
27 #include <stdint.h>
29 #ifndef JIT_DESCRIPTOR_LINKAGE
30 #define JIT_DESCRIPTOR_LINKAGE
31 #endif
33 typedef enum
35 JIT_NOACTION = 0,
36 JIT_REGISTER,
37 JIT_UNREGISTER
38 } jit_actions_t;
41 struct jit_code_entry
43 struct jit_code_entry *next_entry;
44 struct jit_code_entry *prev_entry;
45 const void *symfile_addr;
46 uint64_t symfile_size;
50 struct jit_descriptor
52 uint32_t version;
53 uint32_t action_flag;
54 struct jit_code_entry *relevant_entry;
55 struct jit_code_entry *first_entry;
58 JIT_DESCRIPTOR_LINKAGE struct jit_descriptor __jit_debug_descriptor
59 = { 1, 0, 0, 0 };
61 void __attribute__((noinline)) __jit_debug_register_code()
65 #endif /* JIT_PROTOCOL_H */