Commit | Line | Data |
---|---|---|
976411d6 GB |
1 | /* Common definitions. |
2 | ||
32d0add0 | 3 | Copyright (C) 1986-2015 Free Software Foundation, Inc. |
976411d6 GB |
4 | |
5 | This file is part of GDB. | |
6 | ||
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 | |
9 | the Free Software Foundation; either version 3 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | #ifndef COMMON_DEFS_H | |
21 | #define COMMON_DEFS_H | |
22 | ||
23 | #include "config.h" | |
24 | #ifdef GDBSERVER | |
25 | #include "build-gnulib-gdbserver/config.h" | |
26 | #else | |
27 | #include "build-gnulib/config.h" | |
28 | #endif | |
29 | ||
355e2102 | 30 | #include <stdarg.h> |
d02f550d | 31 | #include <stdio.h> |
d7096f71 | 32 | #include <stdlib.h> |
8ebb3f56 | 33 | #include <stddef.h> |
8cc73a39 | 34 | #include <stdint.h> |
6d3d12eb | 35 | #include <string.h> |
bb974a24 | 36 | #include <errno.h> |
9c232dda | 37 | #include <alloca.h> |
0e443c87 | 38 | #include "ansidecl.h" |
b9391142 | 39 | #include "libiberty.h" |
a5fceff8 | 40 | #include "pathmax.h" |
cb9f1a9b | 41 | #include "gdb/signals.h" |
3995eeee | 42 | #include "gdb_locale.h" |
4cb9c816 | 43 | #include "ptid.h" |
e76df0d0 | 44 | #include "common-utils.h" |
dccbb609 | 45 | #include "gdb_assert.h" |
ef87c8bb | 46 | #include "errors.h" |
9239eeab | 47 | #include "common-types.h" |
f6e94d78 | 48 | #include "print-utils.h" |
34abf635 | 49 | #include "common-debug.h" |
6f1947e8 | 50 | #include "cleanups.h" |
a442d071 | 51 | #include "common-exceptions.h" |
d02f550d | 52 | |
56000a98 PA |
53 | #ifdef __cplusplus |
54 | # define EXTERN_C extern "C" | |
3c14e5a3 PA |
55 | # define EXTERN_C_PUSH extern "C" { |
56 | # define EXTERN_C_POP } | |
56000a98 PA |
57 | #else |
58 | # define EXTERN_C extern | |
3c14e5a3 PA |
59 | # define EXTERN_C_PUSH |
60 | # define EXTERN_C_POP | |
56000a98 PA |
61 | #endif |
62 | ||
976411d6 | 63 | #endif /* COMMON_DEFS_H */ |