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; --- 24 unchanged lines hidden (view full) --- 33 34#include <string> 35#include <vector> 36 37#include "base/debug.hh" 38#include "sim/debug.hh" 39#include "sim/eventq.hh" 40#include "sim/sim_events.hh" |
41#include "sim/sim_exit.hh" |
42 43using namespace std; 44 45// 46// Debug event: place a breakpoint on the process function and 47// schedule the event to break at a particular cycle 48// 49struct DebugBreakEvent : public Event --- 34 unchanged lines hidden (view full) --- 84// 85void 86schedBreakCycle(Tick when) 87{ 88 mainEventQueue.schedule(new DebugBreakEvent, when); 89 warn("need to stop all queues"); 90} 91 |
92/// 93/// Function to cause the simulator to take a checkpoint from the debugger 94/// |
95void |
96takeCheckpoint(Tick when) 97{ 98 if (!when) 99 when = curTick() + 1; 100 exitSimLoop("checkpoint", 0, when, 0); 101} 102 103void |
104eventqDump() 105{ 106 mainEventQueue.dump(); 107 warn("need to dump all queues"); 108} 109 110void 111py_interact() --- 30 unchanged lines hidden --- |