summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2004-06-21 22:42:16 -0700
committerSteve Reinhardt <stever@eecs.umich.edu>2004-06-21 22:42:16 -0700
commitc1e58b6bf6b353f9355aafd8ed2cb86e6d00e32a (patch)
treee692c51f0b454d53034aad7cc63c605468dd7830 /base
parent800445f4b814d2c6acc92c68d8fc7dee0bf4f8ae (diff)
downloadgem5-c1e58b6bf6b353f9355aafd8ed2cb86e6d00e32a.tar.xz
Handle SIGABRT a little more nicely.
base/misc.cc: Don't dump trace in panic(), SIGABRT handler will do it now. sim/main.cc: Add SIGABRT handler that prints curTick and dumps buffered trace (if any). This doesn't work as well as I would like since the buffered trace records often contain stale references to stack-resident temporary std::string objects. Someday we'll have to put in a fix for that. --HG-- extra : convert_revision : 67576efbf5c10e63e255fc9a9ec520326fd3567b
Diffstat (limited to 'base')
-rw-r--r--base/misc.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/base/misc.cc b/base/misc.cc
index 5caf96d40..1304fb128 100644
--- a/base/misc.cc
+++ b/base/misc.cc
@@ -61,11 +61,6 @@ __panic(const string &format, cp::ArgList &args, const char *func,
delete &args;
-#if TRACING_ON
- // dump trace buffer, if there is one
- Trace::theLog.dump(cerr);
-#endif
-
abort();
}