Go to the documentation of this file.
43 #include <sys/types.h>
65 kill(getpid(), SIGTRAP);
67 cprintf(
"Debug::breakpoint suppressed, compiled with NDEBUG\n");
82 bool Flag::_globalEnable =
false;
93 Flag::Flag(
const char *
name,
const char *desc)
94 : _name(
name), _desc(desc)
187 using namespace Debug;
188 FlagsMap::iterator
i =
allFlags().begin();
189 FlagsMap::iterator end =
allFlags().end();
190 for (;
i != end; ++
i) {
192 if (
f &&
f->status())
static bool _globalEnable
Flag * findFlag(const std::string &name)
void clearDebugFlag(const char *string)
std::vector< Flag * > _kids
void cprintf(const char *format, const Args &...args)
std::map< std::string, Flag * > FlagsMap
static void globalEnable()
bool changeFlag(const char *s, bool value)
static void globalDisable()
const std::string & name()
bool status() const override
Overload hash function for BasicBlockRange type.
void setDebugFlag(const char *string)
#define panic(...)
This implements a cprintf based panic() function.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17