X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fdebug.h;h=e95408ffd9ea41b14e0d7f37d7706dff6f092b70;hb=945e0f82dad31db89a107b496532886fe215c011;hp=143c7dfbf1d1607e0b3a5cfc3a125416d1ad2f2f;hpb=ee1fe73e110f7009719b6befefd9fabe94672931;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/debug.h b/gold/debug.h index 143c7dfbf1..e95408ffd9 100644 --- a/gold/debug.h +++ b/gold/debug.h @@ -1,6 +1,6 @@ // debug.h -- gold internal debugging support -*- C++ -*- -// Copyright 2007 Free Software Foundation, Inc. +// Copyright (C) 2007-2016 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -23,6 +23,8 @@ #ifndef GOLD_DEBUG_H #define GOLD_DEBUG_H +#include + #include "parameters.h" #include "errors.h" @@ -31,10 +33,16 @@ 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_RELAXATION = 0x8; +const int DEBUG_INCREMENTAL = 0x10; +const int DEBUG_LOCATION = 0x20; -const int DEBUG_ALL = DEBUG_TASK | DEBUG_SCRIPT; +const int DEBUG_ALL = (DEBUG_TASK | DEBUG_SCRIPT | DEBUG_FILES + | DEBUG_RELAXATION | DEBUG_INCREMENTAL + | DEBUG_LOCATION); // Convert a debug string to the appropriate enum. inline int @@ -45,6 +53,10 @@ debug_string_to_enum(const char* arg) { { "task", DEBUG_TASK }, { "script", DEBUG_SCRIPT }, + { "files", DEBUG_FILES }, + { "relaxation", DEBUG_RELAXATION }, + { "incremental", DEBUG_INCREMENTAL }, + { "location", DEBUG_LOCATION }, { "all", DEBUG_ALL } };