OLD | NEW |
1 /* JIT declarations for GDB, the GNU Debugger. | 1 /* JIT declarations for GDB, the GNU Debugger. |
2 | 2 |
3 Copyright (C) 2011-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2011-2012 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 18 matching lines...) Expand all Loading... |
29 #define GDB_READER_INTERFACE_VERSION 1 | 29 #define GDB_READER_INTERFACE_VERSION 1 |
30 | 30 |
31 /* Readers must be released under a GPL compatible license. To | 31 /* Readers must be released under a GPL compatible license. To |
32 declare that the reader is indeed released under a GPL compatible | 32 declare that the reader is indeed released under a GPL compatible |
33 license, invoke the macro GDB_DECLARE_GPL_COMPATIBLE in a source | 33 license, invoke the macro GDB_DECLARE_GPL_COMPATIBLE in a source |
34 file. */ | 34 file. */ |
35 | 35 |
36 #ifdef __cplusplus | 36 #ifdef __cplusplus |
37 #define GDB_DECLARE_GPL_COMPATIBLE_READER \ | 37 #define GDB_DECLARE_GPL_COMPATIBLE_READER \ |
38 extern "C" { \ | 38 extern "C" { \ |
| 39 extern int plugin_is_GPL_compatible (void); \ |
39 extern int plugin_is_GPL_compatible (void) \ | 40 extern int plugin_is_GPL_compatible (void) \ |
40 { \ | 41 { \ |
41 return 0; \ | 42 return 0; \ |
42 } \ | 43 } \ |
43 } | 44 } |
44 | 45 |
45 #else | 46 #else |
46 | 47 |
47 #define GDB_DECLARE_GPL_COMPATIBLE_READER | 48 #define GDB_DECLARE_GPL_COMPATIBLE_READER \ |
| 49 extern int plugin_is_GPL_compatible (void); \ |
48 extern int plugin_is_GPL_compatible (void) \ | 50 extern int plugin_is_GPL_compatible (void) \ |
49 { \ | 51 { \ |
50 return 0; \ | 52 return 0; \ |
51 } | 53 } |
52 | 54 |
53 #endif | 55 #endif |
54 | 56 |
55 /* Represents an address on the target system. */ | 57 /* Represents an address on the target system. */ |
56 | 58 |
57 typedef @TARGET_PTR@ GDB_CORE_ADDR; | 59 typedef @TARGET_PTR@ GDB_CORE_ADDR; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 gdb_unwind_frame *unwind; | 337 gdb_unwind_frame *unwind; |
336 gdb_get_frame_id *get_frame_id; | 338 gdb_get_frame_id *get_frame_id; |
337 gdb_destroy_reader *destroy; | 339 gdb_destroy_reader *destroy; |
338 }; | 340 }; |
339 | 341 |
340 #ifdef __cplusplus | 342 #ifdef __cplusplus |
341 } /* extern "C" */ | 343 } /* extern "C" */ |
342 #endif | 344 #endif |
343 | 345 |
344 #endif | 346 #endif |
OLD | NEW |