1996-11-29 08:55:09 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* 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 *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1996-11-29 08:55:09 -08:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
(*open Globals*)
|
1997-01-05 06:04:06 -08:00
|
|
|
|
1996-11-29 08:55:09 -08:00
|
|
|
open Primitives
|
|
|
|
|
1997-01-05 06:04:06 -08:00
|
|
|
type expression =
|
|
|
|
E_ident of Longident.t (* x or Mod.x *)
|
|
|
|
| E_name of int (* $xxx *)
|
|
|
|
| E_item of expression * int (* x.1 x.[2] x.(3) *)
|
|
|
|
| E_field of expression * string (* x.lbl !x *)
|
|
|
|
| E_result
|
1996-11-29 08:55:09 -08:00
|
|
|
|
1997-02-19 08:09:23 -08:00
|
|
|
type break_arg =
|
|
|
|
BA_none (* break *)
|
|
|
|
| BA_pc of int (* break PC *)
|
|
|
|
| BA_function of expression (* break FUNCTION *)
|
|
|
|
| BA_pos1 of string option * int * int option
|
|
|
|
(* break @ [MODULE] LINE [POS] *)
|
|
|
|
| BA_pos2 of string option * int (* break @ [MODULE] # OFFSET *)
|
|
|
|
|