warn if "source" fails to open the file when from_tty == 0
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / jit-simple.c
1 /* Simple program using the JIT API. */
2
3 #include <stdint.h>
4
5 struct 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
13 struct 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. */
25 int spacer = 4;
26 #endif
27
28 struct jit_descriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
29
30 void __jit_debug_register_code()
31 {
32 }
33
34 int main()
35 {
36 return 0;
37 }
This page took 0.039075 seconds and 4 git commands to generate.