45 #include "pybind11/pybind11.h"
46 #include "pybind11/stl.h"
56 namespace py = pybind11;
84 py::module m_debug = m_native.def_submodule(
"debug");
98 py::class_<Debug::Flag> c_flag(m_debug,
"Flag");
108 py::class_<Debug::SimpleFlag>(m_debug,
"SimpleFlag", c_flag);
109 py::class_<Debug::CompoundFlag>(m_debug,
"CompoundFlag", c_flag);
112 py::module m_trace = m_native.def_submodule(
"trace");
static void ignore(const char *expr)
std::ostream * stream() const
Get the output underlying output stream.
static void output(const char *filename)
OutputStream * create(const std::string &name, bool binary=false, bool no_gz=false)
Creates a file in this directory (optionally compressed).
Flag * findFlag(const std::string &name)
virtual std::vector< Flag * > kids()
void setIgnore(ObjectMatch &ignore_)
Set objects to ignore.
void setDebugFlag(const char *string)
OutputStream * find(const std::string &name) const
Finds stream associated with an open file or stdout/stderr.
void setRemoteGDBPort(int port)
void pybind_init_debug(py::module &m_native)
Logging wrapper for ostreams with the format: <when>: <name>: <message-body>
void clearDebugFlag(const char *string)
Logger * getDebugLogger()
Get the current global debug logger.
void enable()
Enable/disable debug logging.
void setDebugLogger(Logger *logger)
Delete the current global logger and assign a new one.
void schedBreak(Tick when)
Cause the simulator to execute a breakpoint.