debug.cc (8699:d1a507c6329a) | debug.cc (9554:406fbcf60223) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28 * Authors: Nathan Binkert 29 */ 30 31#include <sys/types.h> 32#include <unistd.h> 33 34#include <algorithm> 35#include <csignal> | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28 * Authors: Nathan Binkert 29 */ 30 31#include <sys/types.h> 32#include <unistd.h> 33 34#include <algorithm> 35#include <csignal> |
36#include <map> 37#include <vector> | |
38 39#include "base/cprintf.hh" 40#include "base/debug.hh" 41#include "base/misc.hh" 42 43using namespace std; 44 45namespace Debug { --- 11 unchanged lines hidden (view full) --- 57#else 58 cprintf("Debug::breakpoint suppressed, compiled with NDEBUG\n"); 59#endif 60} 61 62// 63// Flags for debugging purposes. Primarily for trace.hh 64// | 36 37#include "base/cprintf.hh" 38#include "base/debug.hh" 39#include "base/misc.hh" 40 41using namespace std; 42 43namespace Debug { --- 11 unchanged lines hidden (view full) --- 55#else 56 cprintf("Debug::breakpoint suppressed, compiled with NDEBUG\n"); 57#endif 58} 59 60// 61// Flags for debugging purposes. Primarily for trace.hh 62// |
65typedef std::map<string, Flag *> FlagsMap; | |
66int allFlagsVersion = 0; 67FlagsMap & 68allFlags() 69{ 70 static FlagsMap flags; 71 return flags; 72} 73 --- 112 unchanged lines hidden --- | 63int allFlagsVersion = 0; 64FlagsMap & 65allFlags() 66{ 67 static FlagsMap flags; 68 return flags; 69} 70 --- 112 unchanged lines hidden --- |