Go to the documentation of this file.
43 #include <sys/types.h>
63 kill(getpid(), SIGTRAP);
65 cprintf(
"Debug::breakpoint suppressed, compiled with NDEBUG\n");
92 : _name(
name), _desc(desc)
97 panic_if(!result.second,
"Flag %s already defined!",
name);
186 using namespace Debug;
187 FlagsMap::iterator
i =
allFlags().begin();
188 FlagsMap::iterator end =
allFlags().end();
189 for (;
i != end; ++
i) {
191 if (
f &&
f->enabled())
static bool _globalEnable
Flag * findFlag(const std::string &name)
Flag(const char *name, const char *desc)
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 enabled() const override
bool changeFlag(const char *s, bool value)
static void globalDisable()
const std::string & name()
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
void setDebugFlag(const char *string)
Generated on Tue Mar 23 2021 19:41:23 for gem5 by doxygen 1.8.17