File tree 3 files changed +36
-6
lines changed
3 files changed +36
-6
lines changed Original file line number Diff line number Diff line change 10
10
// / \file
11
11
// / Low-level interface to gdb
12
12
13
- #ifdef __linux__
13
+ // clang-format off
14
+ #if defined(__linux__) || \
15
+ defined (__FreeBSD_kernel__) || \
16
+ defined(__GNU__) || \
17
+ defined(__unix__) || \
18
+ defined(__CYGWIN__) || \
19
+ defined(__MACH__)
20
+ // clang-format on
21
+
14
22
#include < cctype>
15
23
#include < cerrno>
16
24
#include < cstdio>
Original file line number Diff line number Diff line change 15
15
// / gdb machine interface (see section "The GDB/MI Interface" in the
16
16
// / gdb manual to communicate with gdb.
17
17
18
- #ifdef __linux__
18
+ // clang-format off
19
+ #if defined(__linux__) || \
20
+ defined (__FreeBSD_kernel__) || \
21
+ defined(__GNU__) || \
22
+ defined(__unix__) || \
23
+ defined(__CYGWIN__) || \
24
+ defined(__MACH__)
25
+ // clang-format on
26
+
19
27
#ifndef CPROVER_MEMORY_ANALYZER_GDB_API_H
20
28
#define CPROVER_MEMORY_ANALYZER_GDB_API_H
21
29
#include < unistd.h>
@@ -92,4 +100,4 @@ class gdb_interaction_exceptiont : public cprover_exception_baset
92
100
};
93
101
94
102
#endif // CPROVER_MEMORY_ANALYZER_GDB_API_H
95
- #endif // __linux__
103
+ #endif
Original file line number Diff line number Diff line change 9
9
10
10
#include < testing-utils/use_catch.h>
11
11
12
- #ifdef __linux__
13
- // \file Test that the regex expression used work as expected.
14
- #define private public
12
+ // clang-format off
13
+ #if defined(__linux__) || \
14
+ defined (__FreeBSD_kernel__) || \
15
+ defined(__GNU__) || \
16
+ defined(__unix__) || \
17
+ defined(__CYGWIN__) || \
18
+ defined(__MACH__)
19
+ // clang-format on
20
+
21
+ #include < cstdio>
22
+ #include < cstdlib>
23
+ #include < regex>
24
+ #include < string>
25
+
26
+ #include < fstream>
27
+ #include < iostream>
28
+
15
29
#include < memory-analyzer/gdb_api.cpp>
16
30
#include < string>
17
31
You can’t perform that action at this time.
0 commit comments