1 /* Generated by ./xlat/gen.sh from ./xlat/sigtrap_codes.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(TRAP_BRKPT) || (defined(HAVE_DECL_TRAP_BRKPT) && HAVE_DECL_TRAP_BRKPT)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((TRAP_BRKPT) == (1), "TRAP_BRKPT != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define TRAP_BRKPT 1
12 #endif
13 #if defined(TRAP_TRACE) || (defined(HAVE_DECL_TRAP_TRACE) && HAVE_DECL_TRAP_TRACE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((TRAP_TRACE) == (2), "TRAP_TRACE != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define TRAP_TRACE 2
19 #endif
20 #if defined(TRAP_BRANCH) || (defined(HAVE_DECL_TRAP_BRANCH) && HAVE_DECL_TRAP_BRANCH)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((TRAP_BRANCH) == (3), "TRAP_BRANCH != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define TRAP_BRANCH 3
26 #endif
27 #if defined(TRAP_HWBKPT) || (defined(HAVE_DECL_TRAP_HWBKPT) && HAVE_DECL_TRAP_HWBKPT)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((TRAP_HWBKPT) == (4), "TRAP_HWBKPT != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define TRAP_HWBKPT 4
33 #endif
34 #if defined(TRAP_UNK) || (defined(HAVE_DECL_TRAP_UNK) && HAVE_DECL_TRAP_UNK)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((TRAP_UNK) == (5), "TRAP_UNK != 5");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define TRAP_UNK 5
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifdef IN_MPERS
45 
46 extern const struct xlat sigtrap_codes[];
47 
48 # else
49 
50 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
51 static
52 #  endif
53 const struct xlat sigtrap_codes[] = {
54 #if defined(TRAP_STEP) || (defined(HAVE_DECL_TRAP_STEP) && HAVE_DECL_TRAP_STEP)
55   XLAT(TRAP_STEP),
56 #endif
57  XLAT(TRAP_BRKPT),
58 #if defined(TRAP_TRACEFLOW) || (defined(HAVE_DECL_TRAP_TRACEFLOW) && HAVE_DECL_TRAP_TRACEFLOW)
59   XLAT(TRAP_TRACEFLOW),
60 #endif
61  XLAT(TRAP_TRACE),
62 #if defined(TRAP_WATCHPT) || (defined(HAVE_DECL_TRAP_WATCHPT) && HAVE_DECL_TRAP_WATCHPT)
63   XLAT(TRAP_WATCHPT),
64 #endif
65  XLAT(TRAP_BRANCH),
66 #if defined(TRAP_ILLTRAP) || (defined(HAVE_DECL_TRAP_ILLTRAP) && HAVE_DECL_TRAP_ILLTRAP)
67   XLAT(TRAP_ILLTRAP),
68 #endif
69  XLAT(TRAP_HWBKPT),
70  XLAT(TRAP_UNK),
71  XLAT_END
72 };
73 
74 # endif /* !IN_MPERS */
75 
76 #endif /* !XLAT_MACROS_ONLY */
77