2016-02-18 07:11:59 -08:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Jerome Vouillon, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* OCaml port by John Malecki and Xavier Leroy *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. This file is distributed under the terms of *)
|
|
|
|
(* the GNU Lesser General Public License version 2.1, with the *)
|
|
|
|
(* special exception on linking described in the file LICENSE. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
(******************************* Breakpoints ***************************)
|
|
|
|
|
|
|
|
(*** Debugging. ***)
|
|
|
|
val debug_breakpoints : bool ref
|
|
|
|
|
|
|
|
(*** Information about breakpoints. ***)
|
|
|
|
|
|
|
|
val breakpoints_count : unit -> int
|
|
|
|
|
2019-05-02 08:05:15 -07:00
|
|
|
(* Breakpoint number -> code_event. *)
|
|
|
|
type breakpoint_id = int
|
|
|
|
val breakpoints : (breakpoint_id * Events.code_event) list ref
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
(* Is there a breakpoint at `pc' ? *)
|
2019-05-02 08:05:15 -07:00
|
|
|
val breakpoint_at_pc : Debugcom.pc -> bool
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
(* List of breakpoints at `pc'. *)
|
2019-07-16 04:42:04 -07:00
|
|
|
val breakpoints_at_pc : Debugcom.pc -> breakpoint_id list
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
(*** Set and remove breakpoints ***)
|
|
|
|
|
2017-08-10 03:59:23 -07:00
|
|
|
(* Ensure the current version is installed in current checkpoint. *)
|
1996-11-29 08:55:09 -08:00
|
|
|
val update_breakpoints : unit -> unit
|
|
|
|
|
|
|
|
(* Execute given function with no breakpoint in current checkpoint. *)
|
|
|
|
(* --- `goto' run faster so (does not stop on each breakpoint). *)
|
|
|
|
val execute_without_breakpoints : (unit -> unit) -> unit
|
|
|
|
|
|
|
|
(* Insert a new breakpoint in lists. *)
|
2019-05-02 08:05:15 -07:00
|
|
|
val new_breakpoint : Events.code_event -> unit
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
(* Remove a breakpoint from lists. *)
|
2019-07-16 04:42:04 -07:00
|
|
|
val remove_breakpoint : breakpoint_id -> unit
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
val remove_all_breakpoints : unit -> unit
|
|
|
|
|
|
|
|
(*** Temporary breakpoints. ***)
|
|
|
|
|
|
|
|
(* Temporary breakpoint position. *)
|
2019-05-02 08:05:15 -07:00
|
|
|
val temporary_breakpoint_position : Debugcom.pc option ref
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
(* Execute `funct' with a breakpoint added at `pc'. *)
|
|
|
|
(* --- Used by `finish'. *)
|
2019-05-02 08:05:15 -07:00
|
|
|
val exec_with_temporary_breakpoint : Debugcom.pc -> (unit -> unit) -> unit
|