debug.cc (8231:51cf7f3cf9ac) debug.cc (8278:4fe5f7f5094c)
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"
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"
41
42using namespace std;
43
44//
45// Debug event: place a breakpoint on the process function and
46// schedule the event to break at a particular cycle
47//
48struct DebugBreakEvent : public Event

--- 34 unchanged lines hidden (view full) ---

83//
84void
85schedBreakCycle(Tick when)
86{
87 mainEventQueue.schedule(new DebugBreakEvent, when);
88 warn("need to stop all queues");
89}
90
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///
91void
95void
96takeCheckpoint(Tick when)
97{
98 if (!when)
99 when = curTick() + 1;
100 exitSimLoop("checkpoint", 0, when, 0);
101}
102
103void
92eventqDump()
93{
94 mainEventQueue.dump();
95 warn("need to dump all queues");
96}
97
98void
99py_interact()

--- 30 unchanged lines hidden ---
104eventqDump()
105{
106 mainEventQueue.dump();
107 warn("need to dump all queues");
108}
109
110void
111py_interact()

--- 30 unchanged lines hidden ---