aboutsummaryrefslogtreecommitdiff
path: root/include/debug.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-11 02:05:39 +0200
committervan Hauser <vh@thc.org>2020-08-11 02:05:39 +0200
commit50e76fce123f01ec83024f3bbd3190f2e1a6d387 (patch)
tree4d701919ada33e3c26a078bc571903abd4e258e0 /include/debug.h
parent432638404f40594ae163b6e1b92fcfd51b59d59a (diff)
downloadafl++-50e76fce123f01ec83024f3bbd3190f2e1a6d387.tar.gz
adding ctor function skipping in LTO fixed map mode
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/include/debug.h b/include/debug.h
index 6cc26ec2..f9ebce58 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -218,43 +218,43 @@
/* Die with a verbose non-OS fatal error message. */
-#define FATAL(x...) \
- do { \
- \
- SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD \
- "\n[-] PROGRAM ABORT : " cRST x); \
+#define FATAL(x...) \
+ do { \
+ \
+ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD \
+ "\n[-] PROGRAM ABORT : " cRST x); \
SAYF(cLRD "\n Location : " cRST "%s(), %s:%u\n\n", __func__, \
- __FILE__, __LINE__); \
- exit(1); \
- \
+ __FILE__, __LINE__); \
+ exit(1); \
+ \
} while (0)
/* Die by calling abort() to provide a core dump. */
-#define ABORT(x...) \
- do { \
- \
- SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD \
- "\n[-] PROGRAM ABORT : " cRST x); \
+#define ABORT(x...) \
+ do { \
+ \
+ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD \
+ "\n[-] PROGRAM ABORT : " cRST x); \
SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n\n", __func__, \
- __FILE__, __LINE__); \
- abort(); \
- \
+ __FILE__, __LINE__); \
+ abort(); \
+ \
} while (0)
/* Die while also including the output of perror(). */
-#define PFATAL(x...) \
- do { \
- \
- fflush(stdout); \
- SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD \
- "\n[-] SYSTEM ERROR : " cRST x); \
+#define PFATAL(x...) \
+ do { \
+ \
+ fflush(stdout); \
+ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD \
+ "\n[-] SYSTEM ERROR : " cRST x); \
SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n", __func__, \
- __FILE__, __LINE__); \
- SAYF(cLRD " OS message : " cRST "%s\n", strerror(errno)); \
- exit(1); \
- \
+ __FILE__, __LINE__); \
+ SAYF(cLRD " OS message : " cRST "%s\n", strerror(errno)); \
+ exit(1); \
+ \
} while (0)
/* Die with FATAL() or PFATAL() depending on the value of res (used to