]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.base/jit-protocol.h
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / jit-protocol.h
CommitLineData
213516ef 1/* Copyright (C) 2009-2023 Free Software Foundation, Inc.
2838cc1d
SD
2
3 This file is part of GDB.
4
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.
9
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.
14
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/>. */
17
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
23
24#ifndef JIT_PROTOCOL_H
25#define JIT_PROTOCOL_H
26
27#include <stdint.h>
28
29typedef enum
30{
31 JIT_NOACTION = 0,
32 JIT_REGISTER,
33 JIT_UNREGISTER
34} jit_actions_t;
35
36
37struct jit_code_entry
38{
39 struct jit_code_entry *next_entry;
40 struct jit_code_entry *prev_entry;
946422b6 41 const void *symfile_addr;
2838cc1d
SD
42 uint64_t symfile_size;
43};
44
45
46struct jit_descriptor
47{
48 uint32_t version;
49 uint32_t action_flag;
50 struct jit_code_entry *relevant_entry;
51 struct jit_code_entry *first_entry;
52};
53
946422b6
MS
54struct jit_descriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
55
56void __attribute__((noinline)) __jit_debug_register_code()
57{
58}
59
2838cc1d 60#endif /* JIT_PROTOCOL_H */