summaryrefslogtreecommitdiff
path: root/gold/debug.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-08-21 11:34:06 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-08-21 11:34:06 -0300
commitf3ae7dbacf5aeb9df207f5dacd778a2f6eab24fc (patch)
tree007fb5f9f137a4cb155cbf457fcd3ae320c2e6f4 /gold/debug.h
parent1d72c7445857652f3eb423f2702bc5981580fb63 (diff)
parentb5d3ac25628b1a16409a9816623c34a45377d400 (diff)
downloadbinutils-gdb-f3ae7dbacf5aeb9df207f5dacd778a2f6eab24fc.tar.gz
Merge with binutils-2_27-branch rev b5d3ac20users/linaro/binutils-2_27-branch
Change-Id: Iaa5f379bb904c3eb5b6e041c62c24076d2838063
Diffstat (limited to 'gold/debug.h')
-rw-r--r--gold/debug.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gold/debug.h b/gold/debug.h
index e95408ffd9e..6fd72c2c1c8 100644
--- a/gold/debug.h
+++ b/gold/debug.h
@@ -39,10 +39,11 @@ const int DEBUG_FILES = 0x4;
const int DEBUG_RELAXATION = 0x8;
const int DEBUG_INCREMENTAL = 0x10;
const int DEBUG_LOCATION = 0x20;
+const int DEBUG_TARGET = 0x40;
const int DEBUG_ALL = (DEBUG_TASK | DEBUG_SCRIPT | DEBUG_FILES
| DEBUG_RELAXATION | DEBUG_INCREMENTAL
- | DEBUG_LOCATION);
+ | DEBUG_LOCATION | DEBUG_TARGET);
// Convert a debug string to the appropriate enum.
inline int
@@ -57,6 +58,7 @@ debug_string_to_enum(const char* arg)
{ "relaxation", DEBUG_RELAXATION },
{ "incremental", DEBUG_INCREMENTAL },
{ "location", DEBUG_LOCATION },
+ { "target", DEBUG_TARGET },
{ "all", DEBUG_ALL }
};
@@ -70,11 +72,11 @@ debug_string_to_enum(const char* arg)
// Print a debug message if TYPE is enabled. This is a macro so that
// we only evaluate the arguments if necessary.
-#define gold_debug(TYPE, FORMAT, ...) \
+#define gold_debug(TYPE, ...) \
do \
{ \
if (is_debugging_enabled(TYPE)) \
- parameters->errors()->debug(FORMAT, __VA_ARGS__); \
+ parameters->errors()->debug(__VA_ARGS__); \
} \
while (0)