From Craig Silverstein: Implement --debug=files to track file opens,
and implement --verbose as a synonym.
This commit is contained in:
parent
858b27aeed
commit
2285a61069
6 changed files with 37 additions and 9 deletions
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue