debug.cc (10453:d0365cc3d05f) debug.cc (11157:bc07f3764129)
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#include <vector>
34
35#include "base/debug.hh"
36#include "sim/debug.hh"
37#include "sim/eventq_impl.hh"
38#include "sim/global_event.hh"
39#include "sim/sim_events.hh"
40#include "sim/sim_exit.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#include <vector>
34
35#include "base/debug.hh"
36#include "sim/debug.hh"
37#include "sim/eventq_impl.hh"
38#include "sim/global_event.hh"
39#include "sim/sim_events.hh"
40#include "sim/sim_exit.hh"
41#include "cpu/pc_event.hh"
42#include "sim/system.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 GlobalEvent

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

82//
83void
84schedBreak(Tick when)
85{
86 new DebugBreakEvent(when);
87 warn("need to stop all queues");
88}
89
43
44using namespace std;
45
46//
47// Debug event: place a breakpoint on the process function and
48// schedule the event to break at a particular cycle
49//
50struct DebugBreakEvent : public GlobalEvent

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

84//
85void
86schedBreak(Tick when)
87{
88 new DebugBreakEvent(when);
89 warn("need to stop all queues");
90}
91
92void
93breakAtKernelFunction(const char* funcName)
94{
95 System* curSystem = System::systemList[0];
96 curSystem->addKernelFuncEvent<BreakPCEvent>(funcName,
97 "GDB scheduled break", true);
98}
99
90///
91/// Function to cause the simulator to take a checkpoint from the debugger
92///
93void
94takeCheckpoint(Tick when)
95{
96 if (!when)
97 when = curTick() + 1;

--- 27 unchanged lines hidden ---
100///
101/// Function to cause the simulator to take a checkpoint from the debugger
102///
103void
104takeCheckpoint(Tick when)
105{
106 if (!when)
107 when = curTick() + 1;

--- 27 unchanged lines hidden ---