diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-02-03 10:50:04 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-02-03 10:50:04 -0500 |
commit | b1221a3395495d99e988ee64a4bb93b5f3391292 (patch) | |
tree | b701b670f9549c43d49bd2677b89899c5d07d3a5 /base/trace.hh | |
parent | 2f369ee5d59766750df7466e24a229f96d8faa09 (diff) | |
download | gem5-b1221a3395495d99e988ee64a4bb93b5f3391292.tar.xz |
Remote debugging cleanup and internal debugging support
base/kgdb.h:
Remove flags that aren't used
base/remote_gdb.cc:
Better debugging:
- Give each class a name() function so that the trace infrastructure
knows the correct object name.
- Make the remote debugger capable of detach.
- Split out the RGDB trace flag into a bunch of specific flags.
Remove dead code
Add a new trap type
base/remote_gdb.hh:
Add a name() to the various objects for the trace system
base/trace.hh:
don't need a using directive
add DPRINTFNR: debug printf, no flag, raw output
kern/tru64/tru64_system.cc:
use the INT trap type instead of IF
--HG--
extra : convert_revision : 25e610216c6f43d5d328651bba915f71bade059e
Diffstat (limited to 'base/trace.hh')
-rw-r--r-- | base/trace.hh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/base/trace.hh b/base/trace.hh index 5aeaac445..9e5952765 100644 --- a/base/trace.hh +++ b/base/trace.hh @@ -179,9 +179,8 @@ std::ostream &DebugOut(); #define DDUMP(x, data, count) \ do { \ - using namespace Trace; \ if (Trace::IsOn(Trace::x)) \ - rawDump(data, count); \ + Trace::rawDump(data, count); \ } while (0) #define __dprintf(cycle, name, format, args...) \ @@ -204,6 +203,11 @@ do { \ __dprintf(curTick, name(), args, cp::ArgListNull()); \ } while (0) +#define DPRINTFNR(args...) \ +do { \ + __dprintf((Tick)-1, string(), args, cp::ArgListNull()); \ +} while (0) + #else // !TRACING_ON #define DTRACE(x) (false) @@ -211,6 +215,7 @@ do { \ #define DPRINTF(x, args...) do {} while (0) #define DPRINTFR(args...) do {} while (0) #define DPRINTFN(args...) do {} while (0) +#define DPRINTFNR(args...) do {} while (0) #define DDUMP(x, data, count) do {} while (0) #endif // TRACING_ON |