Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Mantione <massi@mono-cvs.ximian.com>2008-08-20 12:57:11 +0400
committerMassimiliano Mantione <massi@mono-cvs.ximian.com>2008-08-20 12:57:11 +0400
commitfd30b0c62796286223898e1db89825d086288477 (patch)
tree655ca244c018eef603be3ba3e4e2ae5e5a8389c5 /Mono.Profiler
parent52bd37177af30ff8222efd07b63da217af850496 (diff)
Ignore decoding exceptions but print the stack trace.
svn path=/trunk/mono-tools/; revision=111088
Diffstat (limited to 'Mono.Profiler')
-rw-r--r--Mono.Profiler/profiler-file-decoder/ChangeLog3
-rw-r--r--Mono.Profiler/profiler-file-decoder/Main.cs3
2 files changed, 6 insertions, 0 deletions
diff --git a/Mono.Profiler/profiler-file-decoder/ChangeLog b/Mono.Profiler/profiler-file-decoder/ChangeLog
index 486476bb..d5c04afb 100644
--- a/Mono.Profiler/profiler-file-decoder/ChangeLog
+++ b/Mono.Profiler/profiler-file-decoder/ChangeLog
@@ -1,3 +1,6 @@
+2008-08-20 Massimiliano Mantione <massi@ximian.com>
+ * Main.cs: Ignore decoding exceptions but print the stack trace.
+
2008-08-12 Massimiliano Mantione <massi@ximian.com>
* mprof-decoder.in: Fixed for integration into mono-tools;
diff --git a/Mono.Profiler/profiler-file-decoder/Main.cs b/Mono.Profiler/profiler-file-decoder/Main.cs
index fb1d55db..1042a7ef 100644
--- a/Mono.Profiler/profiler-file-decoder/Main.cs
+++ b/Mono.Profiler/profiler-file-decoder/Main.cs
@@ -250,6 +250,9 @@ namespace Mono.Profiler
reader.ReadBlock ().Decode (data, reader);
} catch (DecodingException e) {
Console.WriteLine ("WARNING: DecodingException in block of code {0}, length {1}, file offset {2}, block offset {3}: {4}", e.FailingData.Code, e.FailingData.Length, e.FailingData.FileOffset, e.OffsetInBlock, e.Message);
+ Console.WriteLine (e.StackTrace);
+ Console.WriteLine ("Original stack trace:");
+ Console.WriteLine (e.InnerException.StackTrace);
break;
}
}