|
37 | 37 | # include <asm/ptrace.h>
|
38 | 38 | #endif
|
39 | 39 | #include <sys/user.h> // for user_regs_struct
|
40 |
| -#if SANITIZER_MIPS |
| 40 | +# if SANITIZER_MIPS |
41 | 41 | // clang-format off
|
42 | 42 | # include <asm/sgidefs.h> // <asm/sgidefs.h> must be included before <asm/reg.h>
|
43 | 43 | # include <asm/reg.h> // for mips SP register
|
44 | 44 | // clang-format on
|
45 |
| -#endif |
46 |
| -#include <sys/wait.h> // for signal-related stuff |
| 45 | +# endif |
| 46 | +# include <sys/wait.h> // for signal-related stuff |
47 | 47 |
|
48 |
| -#ifdef sa_handler |
49 |
| -# undef sa_handler |
50 |
| -#endif |
| 48 | +# ifdef sa_handler |
| 49 | +# undef sa_handler |
| 50 | +# endif |
51 | 51 |
|
52 |
| -#ifdef sa_sigaction |
53 |
| -# undef sa_sigaction |
54 |
| -#endif |
| 52 | +# ifdef sa_sigaction |
| 53 | +# undef sa_sigaction |
| 54 | +# endif |
55 | 55 |
|
56 |
| -#include "sanitizer_common.h" |
57 |
| -#include "sanitizer_flags.h" |
58 |
| -#include "sanitizer_libc.h" |
59 |
| -#include "sanitizer_linux.h" |
60 |
| -#include "sanitizer_mutex.h" |
61 |
| -#include "sanitizer_placement_new.h" |
| 56 | +# include "sanitizer_common.h" |
| 57 | +# include "sanitizer_flags.h" |
| 58 | +# include "sanitizer_libc.h" |
| 59 | +# include "sanitizer_linux.h" |
| 60 | +# include "sanitizer_mutex.h" |
| 61 | +# include "sanitizer_placement_new.h" |
62 | 62 |
|
63 | 63 | // Sufficiently old kernel headers don't provide this value, but we can still
|
64 | 64 | // call prctl with it. If the runtime kernel is new enough, the prctl call will
|
@@ -513,7 +513,7 @@ typedef pt_regs regs_struct;
|
513 | 513 |
|
514 | 514 | #elif defined(__mips__)
|
515 | 515 | typedef struct user regs_struct;
|
516 |
| -# define REG_SP regs[EF_R29] |
| 516 | +# define REG_SP regs[EF_R29] |
517 | 517 |
|
518 | 518 | #elif defined(__aarch64__)
|
519 | 519 | typedef struct user_pt_regs regs_struct;
|
|
0 commit comments