diff options
author | Massimiliano Mantione <massi@mono-cvs.ximian.com> | 2008-08-20 12:57:11 +0400 |
---|---|---|
committer | Massimiliano Mantione <massi@mono-cvs.ximian.com> | 2008-08-20 12:57:11 +0400 |
commit | fd30b0c62796286223898e1db89825d086288477 (patch) | |
tree | 655ca244c018eef603be3ba3e4e2ae5e5a8389c5 /Mono.Profiler | |
parent | 52bd37177af30ff8222efd07b63da217af850496 (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/ChangeLog | 3 | ||||
-rw-r--r-- | Mono.Profiler/profiler-file-decoder/Main.cs | 3 |
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; } } |