1 /***********************************************************************/
5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
7 /* Copyright 2001 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../LICENSE. */
12 /***********************************************************************/
14 /* $Id: backtrace.h 9300 2009-06-18 11:17:16Z xclerc $ */
16 #ifndef CAML_BACKTRACE_H
17 #define CAML_BACKTRACE_H
21 CAMLextern int caml_backtrace_active;
22 CAMLextern int caml_backtrace_pos;
23 CAMLextern code_t * caml_backtrace_buffer;
24 CAMLextern value caml_backtrace_last_exn;
25 CAMLextern char * caml_cds_file;
27 CAMLprim value caml_record_backtrace(value vflag);
29 extern void caml_stash_backtrace(value exn, code_t pc, value * sp);
31 CAMLextern void caml_print_exception_backtrace(void);
33 #endif /* CAML_BACKTRACE_H */