Clean up tracing stuff more, get rid of the trace log since
its not all that useful. Fix a few bugs with python/C++ integration. --HG-- extra : convert_revision : a706512f7dc8b0c88f1ff96fe35ab8fbf9548b78
This commit is contained in:
@@ -33,18 +33,23 @@
|
||||
%{
|
||||
#include "base/trace.hh"
|
||||
#include "sim/host.hh"
|
||||
#include "sim/trace_control.hh"
|
||||
|
||||
inline void
|
||||
output(const char *filename)
|
||||
{
|
||||
Trace::setOutput(filename);
|
||||
}
|
||||
|
||||
inline void
|
||||
set(const char *flag)
|
||||
{
|
||||
setTraceFlag(flag);
|
||||
Trace::changeFlag(flag, true);
|
||||
}
|
||||
|
||||
inline void
|
||||
clear(const char *flag)
|
||||
{
|
||||
clearTraceFlag(flag);
|
||||
Trace::changeFlag(flag, false);
|
||||
}
|
||||
|
||||
inline void
|
||||
@@ -57,9 +62,10 @@ using Trace::enabled;
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
extern void ignore(const char *expr);
|
||||
extern void output(const char *string);
|
||||
extern void set(const char *string);
|
||||
extern void clear(const char *string);
|
||||
extern void ignore(const char *expr);
|
||||
extern bool enabled;
|
||||
%}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user