summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-12-01 17:36:22 -0800
committerAli Saidi <Ali.Saidi@ARM.com>2011-12-01 17:36:22 -0800
commit9b52717a92ed9592bd98a41683509f538262a5c7 (patch)
treeeeca2802b9bd9f75614d39c08332faf6a02da843
parentcb6ea0492fce72920fb71ed7fa7a85c740cbe945 (diff)
downloadgem5-9b52717a92ed9592bd98a41683509f538262a5c7.tar.xz
Trace: FIx issue with creation of trace file with output dir overhaul.
--HG-- extra : rebase_source : c1ab57ea8805703d97cdee4f32410821a2d2a9db
-rw-r--r--src/base/trace.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/trace.cc b/src/base/trace.cc
index 1a035d400..fa55e42a9 100644
--- a/src/base/trace.cc
+++ b/src/base/trace.cc
@@ -64,6 +64,8 @@ void
setOutput(const string &filename)
{
dprintf_stream = simout.find(filename);
+ if (!dprintf_stream)
+ dprintf_stream = simout.create(filename);
}
ObjectMatch ignore;