projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb41486
)
Make sure R2RDump write to console in case --out is not specified (#2239)
author
Andrew Au
<andrewau@microsoft.com>
Mon, 27 Jan 2020 22:21:56 +0000
(14:21 -0800)
committer
GitHub
<noreply@github.com>
Mon, 27 Jan 2020 22:21:56 +0000
(14:21 -0800)
src/coreclr/src/tools/r2rdump/R2RDump.cs
patch
|
blob
|
history
diff --git
a/src/coreclr/src/tools/r2rdump/R2RDump.cs
b/src/coreclr/src/tools/r2rdump/R2RDump.cs
index
dc9e910
..
dd102d8
100644
(file)
--- a/
src/coreclr/src/tools/r2rdump/R2RDump.cs
+++ b/
src/coreclr/src/tools/r2rdump/R2RDump.cs
@@
-480,6
+480,10
@@
namespace R2RDump
{
globalWriter = new StreamWriter(_options.Out.FullName);
}
+ else
+ {
+ globalWriter = Console.Out;
+ }
foreach (FileInfo filename in _options.In)
{
@@
-498,7
+502,7
@@
namespace R2RDump
}
}
- if (!_options.Diff
&& globalWriter != null
)
+ if (!_options.Diff)
{
_writer = globalWriter;
}