Use the native unwinder when Exception::ToString throws.
commit171c218f75d89342c13f328aa0dce852f70c76d8
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 14 May 2013 18:18:28 +0000 (14 14:18 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 14 May 2013 18:21:53 +0000 (14 14:21 -0400)
tree8ebac2b9968a7c923f66630d3094ca1d1221b996
parentf12bb0f8f32b7086145db39c3d9a91c95e8dcf10
Use the native unwinder when Exception::ToString throws.

* exception.c: Add mono_exception_get_managed_backtrace so the code that
deals with unhandled exceptions can produce some stacktrace in case
Exception::ToString itself produces another exception.

This can happen under multiple situations, be it OOM, heap corruption or
bugs in ToString ().
mono/metadata/exception.c
mono/metadata/object-internals.h
mono/metadata/object.c
mono/mini/mini-exceptions.c