From: Ali Saidi Date: Fri, 2 Dec 2011 01:36:22 +0000 (-0800) Subject: Trace: FIx issue with creation of trace file with output dir overhaul. X-Git-Tag: stable_2012_02_02~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b52717a92ed9592bd98a41683509f538262a5c7;p=gem5.git Trace: FIx issue with creation of trace file with output dir overhaul. --HG-- extra : rebase_source : c1ab57ea8805703d97cdee4f32410821a2d2a9db --- 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;