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
|
|
|
|
|
|
|
(* Miscellaneous parameters *)
|
|
|
|
|
2009-05-20 04:52:42 -07:00
|
|
|
open Debugger_config
|
1996-11-29 08:55:09 -08:00
|
|
|
|
|
|
|
let program_name = ref ""
|
|
|
|
let socket_name = ref ""
|
|
|
|
let arguments = ref ""
|
|
|
|
|
2002-02-14 07:17:11 -08:00
|
|
|
let default_load_path =
|
|
|
|
ref [ Filename.current_dir_name; Config.standard_library ]
|
1996-11-29 08:55:09 -08:00
|
|
|
|
2018-03-17 04:16:37 -07:00
|
|
|
let breakpoint = ref true
|
|
|
|
let prompt = ref true
|
|
|
|
let time = ref true
|
|
|
|
let version = ref true
|
|
|
|
|
|
|
|
let topdirs_path = ref (Filename.concat Config.standard_library "compiler-libs")
|
|
|
|
|
1996-11-29 08:55:09 -08:00
|
|
|
let add_path dir =
|
2018-09-18 06:49:18 -07:00
|
|
|
Load_path.add_dir dir;
|
1996-11-29 08:55:09 -08:00
|
|
|
Envaux.reset_cache()
|
|
|
|
|
2009-05-20 04:52:42 -07:00
|
|
|
let add_path_for mdl dir =
|
|
|
|
let old = try Hashtbl.find load_path_for mdl with Not_found -> [] in
|
|
|
|
Hashtbl.replace load_path_for mdl (dir :: old)
|
|
|
|
|
1996-11-29 08:55:09 -08:00
|
|
|
(* Used by emacs ? *)
|
|
|
|
let emacs = ref false
|
2014-01-23 01:07:09 -08:00
|
|
|
|
|
|
|
let machine_readable = ref false
|