gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / jit-simple.c
CommitLineData
03bef283
TT
1/* Simple program using the JIT API. */
2
3#include <stdint.h>
4
5struct jit_code_entry
6{
7 struct jit_code_entry *next_entry;
8 struct jit_code_entry *prev_entry;
9 const char *symfile_addr;
10 uint64_t symfile_size;
11};
12
13struct jit_descriptor
14{
15 uint32_t version;
16 /* This type should be jit_actions_t, but we use uint32_t
17 to be explicit about the bitwidth. */
18 uint32_t action_flag;
19 struct jit_code_entry *relevant_entry;
20 struct jit_code_entry *first_entry;
21};
22
23#ifdef SPACER
24/* This exists to change the address of __jit_debug_descriptor. */
25int spacer = 4;
26#endif
27
28struct jit_descriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
29
30void __jit_debug_register_code()
31{
32}
33
34int main()
35{
36 return 0;
37}
This page took 0.12123 seconds and 4 git commands to generate.