debug.cc (2802:babfc298ac86) | debug.cc (3645:2bf1f7c69254) |
---|---|
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; --- 80 unchanged lines hidden (view full) --- 89 90const char * 91DebugBreakEvent::description() 92{ 93 return "debug break"; 94} 95 96// | 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; --- 80 unchanged lines hidden (view full) --- 89 90const char * 91DebugBreakEvent::description() 92{ 93 return "debug break"; 94} 95 96// |
97// Parameter context for global debug options 98// 99class DebugContext : public ParamContext 100{ 101 public: 102 DebugContext(const string &_iniSection) 103 : ParamContext(_iniSection) {} 104 void checkParams(); 105}; 106 107DebugContext debugParams("debug"); 108 109VectorParam<Tick> break_cycles(&debugParams, "break_cycles", 110 "cycle(s) to create breakpoint events"); 111 112void 113DebugContext::checkParams() 114{ 115 if (break_cycles.isValid()) { 116 vector<Tick> &cycles = break_cycles; 117 118 vector<Tick>::iterator i = cycles.begin(); 119 vector<Tick>::iterator end = cycles.end(); 120 121 for (; i < end; ++i) 122 new DebugBreakEvent(&mainEventQueue, *i); 123 } 124} 125 126// | |
127// handy function to schedule DebugBreakEvent on main event queue 128// (callable from debugger) 129// | 97// handy function to schedule DebugBreakEvent on main event queue 98// (callable from debugger) 99// |
130void sched_break_cycle(Tick when) | 100void 101schedBreakCycle(Tick when) |
131{ 132 new DebugBreakEvent(&mainEventQueue, when); 133} 134 | 102{ 103 new DebugBreakEvent(&mainEventQueue, when); 104} 105 |
135void eventq_dump() | 106void 107eventqDump() |
136{ 137 mainEventQueue.dump(); 138} 139 | 108{ 109 mainEventQueue.dump(); 110} 111 |