Trace: FIx issue with creation of trace file with output dir overhaul.
authorAli Saidi <Ali.Saidi@ARM.com>
Fri, 2 Dec 2011 01:36:22 +0000 (17:36 -0800)
committerAli Saidi <Ali.Saidi@ARM.com>
Fri, 2 Dec 2011 01:36:22 +0000 (17:36 -0800)
--HG--
extra : rebase_source : c1ab57ea8805703d97cdee4f32410821a2d2a9db

src/base/trace.cc

index 1a035d400575715d3b9c00dc18581aefc5c04014..fa55e42a9008fe4a62a77a648f59dff0ab529c23 100644 (file)
@@ -64,6 +64,8 @@ void
 setOutput(const string &filename)
 {
     dprintf_stream = simout.find(filename);
+    if (!dprintf_stream)
+        dprintf_stream = simout.create(filename);
 }
 
 ObjectMatch ignore;