diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-13 01:46:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-13 01:46:17 +0000 |
commit | 2285a61069d360fc56b6cf7371a6fe3ac4e240b7 (patch) | |
tree | 9ec30b1d79e193e37204f5e2e06c5c42fceb5d56 /gold/debug.h | |
parent | 858b27aeedf30683566a6f25045977644f0e7d23 (diff) | |
download | gdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.zip gdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.tar.gz gdb-2285a61069d360fc56b6cf7371a6fe3ac4e240b7.tar.bz2 |
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.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gold/debug.h b/gold/debug.h index 143c7df..69a0e29 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 } }; |