1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * Authors: Nathan Binkert 30 */ 31 32#ifndef __BASE_DEBUG_HH__ 33#define __BASE_DEBUG_HH__ 34 |
35#include <map> |
36#include <string> 37#include <vector> 38 39namespace Debug { 40 41void breakpoint(); 42 43class Flag --- 62 unchanged lines hidden (view full) --- 106 addFlag(f10); addFlag(f11); addFlag(f12); addFlag(f13); addFlag(f14); 107 addFlag(f15); addFlag(f16); addFlag(f17); addFlag(f18); addFlag(f19); 108 } 109 110 void enable(); 111 void disable(); 112}; 113 |
114typedef std::map<std::string, Flag *> FlagsMap; 115FlagsMap &allFlags(); 116 117Flag *findFlag(const std::string &name); 118 119bool changeFlag(const char *s, bool value); 120 |
121} // namespace Debug 122 |
123void setDebugFlag(const char *string); 124 125void clearDebugFlag(const char *string); 126 127void dumpDebugFlags(); 128 |
129#endif // __BASE_DEBUG_HH__ |