summaryrefslogtreecommitdiff
path: root/gold/debug.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-13 01:46:17 +0000
committerIan Lance Taylor <iant@google.com>2008-03-13 01:46:17 +0000
commit2285a61069d360fc56b6cf7371a6fe3ac4e240b7 (patch)
tree9ec30b1d79e193e37204f5e2e06c5c42fceb5d56 /gold/debug.h
parent858b27aeedf30683566a6f25045977644f0e7d23 (diff)
downloadbinutils-gdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.tar.gz
From Craig Silverstein: Implement --debug=files to track file opens,
and implement --verbose as a synonym.
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 143c7dfbf1d..69a0e292eb0 100644
--- a/gold/debug.h
+++ b/gold/debug.h
@@ -31,10 +31,11 @@ namespace gold
// The different types of debugging we support. These are bitflags.
-const int DEBUG_TASK = 1;
-const int DEBUG_SCRIPT = 2;
+const int DEBUG_TASK = 0x1;
+const int DEBUG_SCRIPT = 0x2;
+const int DEBUG_FILES = 0x4;
-const int DEBUG_ALL = DEBUG_TASK | DEBUG_SCRIPT;
+const int DEBUG_ALL = DEBUG_TASK | DEBUG_SCRIPT | DEBUG_FILES;
// Convert a debug string to the appropriate enum.
inline int
@@ -45,6 +46,7 @@ debug_string_to_enum(const char* arg)
{
{ "task", DEBUG_TASK },
{ "script", DEBUG_SCRIPT },
+ { "files", DEBUG_FILES },
{ "all", DEBUG_ALL }
};