diff options
author | 2004-02-26 15:36:51 +0000 | |
---|---|---|
committer | 2004-02-26 15:36:51 +0000 | |
commit | 04b447005f0428ac68ef5bf7dd1d6d3349bc1567 (patch) | |
tree | cd73e02c4b56b73dc92ca18a5065dc0bde52697e /proofs | |
parent | 67fe536720c5ef5bb509249b9a30cbc6f2cebd92 (diff) |
added breakpoints to help ide
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5387 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs')
-rw-r--r-- | proofs/refiner.ml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/proofs/refiner.ml b/proofs/refiner.ml index 575c27fbd..4e70d8435 100644 --- a/proofs/refiner.ml +++ b/proofs/refiner.ml @@ -332,6 +332,7 @@ let unpackage glsig = (ref (glsig.sigma)),glsig.it let repackage r v = {it=v;sigma = !r} let apply_sig_tac r tac g = + check_for_interrupt (); (* Breakpoint *) let glsigma,v = tac (repackage r g) in r := glsigma.sigma; (glsigma.it,v) @@ -517,9 +518,10 @@ let tclNOTSAMEGOAL (tac : tactic) goal = let tclORELSE0 t1 t2 g = try t1 g - with - | e when catchable_exception e -> t2 g - | FailError (0,_) | Stdpp.Exc_located(_, FailError (0,_)) -> t2 g + with (* Breakpoint *) + | e when catchable_exception e -> check_for_interrupt (); t2 g + | FailError (0,_) | Stdpp.Exc_located(_, FailError (0,_)) -> + check_for_interrupt (); t2 g | FailError (lvl,s) -> raise (FailError (lvl - 1, s)) | Stdpp.Exc_located (s,FailError (lvl,s')) -> raise (Stdpp.Exc_located (s,FailError (lvl - 1, s'))) @@ -551,10 +553,11 @@ let ite_gen tcal tac_if continue tac_else gl= tac_else gl in try tcal tac_if0 continue gl - with - | e when catchable_exception e -> tac_else0 e gl + with (* Breakpoint *) + | e when catchable_exception e -> + check_for_interrupt (); tac_else0 e gl | (FailError (0,_) | Stdpp.Exc_located(_, FailError (0,_))) as e -> - tac_else0 e gl + check_for_interrupt (); tac_else0 e gl | FailError (lvl,s) -> raise (FailError (lvl - 1, s)) | Stdpp.Exc_located (s,FailError (lvl,s')) -> raise (Stdpp.Exc_located (s,FailError (lvl - 1, s'))) |