diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2017-01-17 09:49:04 +0100 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2017-01-17 09:49:04 +0100 |
commit | 43db836ea4fb19036a19f78e1f988f75a42b910c (patch) | |
tree | a653f92b566735e85386715165a783afbfb54839 /cparser/Cerrors.mli | |
parent | 747ad5bd8c364684256fc7dd306cd475401fe1b0 (diff) | |
download | compcert-43db836ea4fb19036a19f78e1f988f75a42b910c.tar.gz compcert-43db836ea4fb19036a19f78e1f988f75a42b910c.zip |
Added backtrace handler.
If CompCert crashes because of an uncaught exception the exception
is caught toplevel and the backtrace is printed plus an additional
message to include the backtrace in a support request, if buildnr
and tag are available.
Bug 20681.
Diffstat (limited to 'cparser/Cerrors.mli')
-rw-r--r-- | cparser/Cerrors.mli | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cparser/Cerrors.mli b/cparser/Cerrors.mli index 8501cfa0..b2350db6 100644 --- a/cparser/Cerrors.mli +++ b/cparser/Cerrors.mli @@ -72,3 +72,6 @@ val warning_options : (Commandline.pattern * Commandline.action) list (** List of all options for diagnostics *) val raise_on_errors : unit -> unit + +val crash: exn -> unit +(** Report the backtrace of the last exception and exit *) |