Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
2008-11-08 Martin Baulig <martin@ximian.com>
Browse files Browse the repository at this point in the history
	* interface/Report.cs
	(ReportWriter.ctor): Only use `MDB_DEBUG_FLAGS' and parse it like
	the `-debug-flags' command line argument; kill `MDB_DEBUG_OUTPUT'.


svn path=/trunk/debugger/; revision=118261
  • Loading branch information
Martin Baulig committed Nov 8, 2008
1 parent d597745 commit 3f04516
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2008-11-08 Martin Baulig <martin@ximian.com>

* interface/Report.cs
(ReportWriter.ctor): Only use `MDB_DEBUG_FLAGS' and parse it like
the `-debug-flags' command line argument; kill `MDB_DEBUG_OUTPUT'.

2008-11-08 Martin Baulig <martin@ximian.com>

* backend/SingleSteppingEngine.cs
Expand Down
19 changes: 12 additions & 7 deletions interface/Report.cs
Expand Up @@ -151,19 +151,24 @@ public class ReportWriter : DebuggerMarshalByRefObject

public ReportWriter ()
{
file = Environment.GetEnvironmentVariable ("MDB_DEBUG_OUTPUT");
string var = Environment.GetEnvironmentVariable ("MDB_DEBUG_FLAGS");
if (var != null) {
int pos = var.IndexOf (':');
if (pos > 0) {
file = var.Substring (0, pos);
var = var.Substring (pos + 1);
}

if (!Report.ParseDebugFlags (var, out flags))
Console.WriteLine ("Invalid `MDB_DEBUG_FLAGS' environment variable.");
}

if (file != null)
writer = new StreamWriter (file, true);
else
writer = new StreamWriter (Console.OpenStandardError ());
writer.AutoFlush = true;
start_time = DateTime.Now;

string var = Environment.GetEnvironmentVariable ("MDB_DEBUG_FLAGS");
if (var != null) {
if (!Report.ParseDebugFlags (var, out flags))
Console.WriteLine ("Invalid `MDB_DEBUG_FLAGS' environment variable.");
}
}

public ReportWriter (string file, DebugFlags flags)
Expand Down

0 comments on commit 3f04516

Please sign in to comment.