debug.hh (6214:1ec0ec8933ae) debug.hh (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;

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

28 * Authors: Nathan Binkert
29 */
30
31#ifndef __SIM_DEBUG_HH__
32#define __SIM_DEBUG_HH__
33
34#include "base/types.hh"
35
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#ifndef __SIM_DEBUG_HH__
32#define __SIM_DEBUG_HH__
33
34#include "base/types.hh"
35
36/** @file This file provides the definitions for some useful debugging
37 * functions. These are intended to be called from a debugger such as
38 * gdb.
39 */
40
41
42/** Cause the simulator to execute a breakpoint
43 * @param when the cycle to break
44 */
36void schedBreakCycle(Tick when);
37
45void schedBreakCycle(Tick when);
46
47/** Cause the simulator to return to python to create a checkpoint
48 * @param when the cycle to break
49 */
50void takeCheckpoint(Tick when);
51
52/** Dump all the events currently on the event queue
53 */
54void eventqDump();
55
38int getRemoteGDBPort();
39// Remote gdb base port. 0 disables remote gdb.
40void setRemoteGDBPort(int port);
41
42#endif // __SIM_DEBUG_HH__
56int getRemoteGDBPort();
57// Remote gdb base port. 0 disables remote gdb.
58void setRemoteGDBPort(int port);
59
60#endif // __SIM_DEBUG_HH__