summaryrefslogtreecommitdiffstats
path: root/debugger/frames.mli
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-11-29 16:55:09 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-11-29 16:55:09 +0000
commitdb037c79de1e5ba6d5c0d6c117ecc9dcd5fe35eb (patch)
treefea4b40c941bfabb578b5848eae6bcfca0f0d04c /debugger/frames.mli
parent30caadf9e719e79980189a71375921ad03e790e7 (diff)
Premier jet du portage OCaml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1209 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'debugger/frames.mli')
-rw-r--r--debugger/frames.mli54
1 files changed, 54 insertions, 0 deletions
diff --git a/debugger/frames.mli b/debugger/frames.mli
new file mode 100644
index 000000000..7a683c834
--- /dev/null
+++ b/debugger/frames.mli
@@ -0,0 +1,54 @@
+(***********************************************************************)
+(* *)
+(* Objective Caml *)
+(* *)
+(* Jerome Vouillon, projet Cristal, INRIA Rocquencourt *)
+(* Objective Caml port by John Malecki and Xavier Leroy *)
+(* *)
+(* Copyright 1996 Institut National de Recherche en Informatique et *)
+(* Automatique. Distributed only by permission. *)
+(* *)
+(***********************************************************************)
+
+(* $Id$ *)
+
+(****************************** Frames *********************************)
+
+open Instruct
+open Primitives
+
+(* Current frame number *)
+val current_frame : int ref
+
+(* Event at selected position. *)
+val selected_event : debug_event option ref
+
+(* Selected position in source. *)
+(* Raise `Not_found' if not on an event. *)
+val selected_point : unit -> string * int
+
+val selected_event_is_before : unit -> bool
+
+(* Select a frame. *)
+(* Raise `Not_found' if no such frame. *)
+(* --- Assume the currents events have already been updated. *)
+val select_frame : int -> unit
+
+(* Select a frame. *)
+(* Same as `select_frame' but raise no exception if the frame is not found. *)
+(* --- Assume the currents events have already been updated. *)
+val try_select_frame : int -> unit
+
+(* Return to default frame (frame 0). *)
+val reset_frame : unit -> unit
+
+(* Perform a stack backtrace.
+ Call the given function with the events for each stack frame,
+ or None if we've encountered a stack frame with no debugging info
+ attached. Stop when the function returns false, or frame with no
+ debugging info reached, or top of stack reached. *)
+val do_backtrace : (debug_event option -> bool) -> unit
+
+(* Return the number of frames in the stack, or (-1) if it can't be
+ determined because some frames have no debugging info. *)
+val stack_depth : unit -> int