From 0892990d7bbeb770de458a3b4ef2ffe34a1b11e3 Mon Sep 17 00:00:00 2001 From: ppedrot Date: Mon, 28 Jan 2013 21:06:02 +0000 Subject: Actually adding backtrace handling. I hope I did not forget some [with] clauses. Otherwise, some stack frame will be missing from the debug. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16167 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/csymtable.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/csymtable.ml b/kernel/csymtable.ml index 789df8b3d9..bef5b751f0 100644 --- a/kernel/csymtable.ml +++ b/kernel/csymtable.ml @@ -160,7 +160,12 @@ and eval_to_patch env (buff,pl,fv) = and val_of_constr env c = let (_,fun_code,_ as ccfv) = try compile env c - with e -> print_string "can not compile \n";Format.print_flush();raise e in + with e -> + let e = Errors.push e in + let () = print_string "can not compile \n" in + let () = Format.print_flush () in + raise e + in eval_to_patch env (to_memory ccfv) let set_transparent_const kn = () (* !?! *) -- cgit v1.2.3