]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ocaml/contrib/debugger/parameters.ml
update
[l4.git] / l4 / pkg / ocaml / contrib / debugger / parameters.ml
1 (***********************************************************************)
2 (*                                                                     *)
3 (*                           Objective Caml                            *)
4 (*                                                                     *)
5 (*          Jerome Vouillon, projet Cristal, INRIA Rocquencourt        *)
6 (*          Objective Caml port by John Malecki and Xavier Leroy       *)
7 (*                                                                     *)
8 (*  Copyright 1996 Institut National de Recherche en Informatique et   *)
9 (*  en Automatique.  All rights reserved.  This file is distributed    *)
10 (*  under the terms of the Q Public License version 1.0.               *)
11 (*                                                                     *)
12 (***********************************************************************)
13
14 (* $Id: parameters.ml 9221 2009-04-02 09:06:33Z xclerc $ *)
15
16 (* Miscellaneous parameters *)
17
18 open Primitives
19 open Config
20 open Debugger_config
21
22 let program_loaded = ref false
23 let program_name = ref ""
24 let socket_name = ref ""
25 let arguments = ref ""
26
27 let default_load_path =
28   ref [ Filename.current_dir_name; Config.standard_library ]
29
30 let add_path dir =
31   load_path := dir :: except dir !load_path;
32   Envaux.reset_cache()
33
34 let add_path_for mdl dir =
35   let old = try Hashtbl.find load_path_for mdl with Not_found -> [] in
36   Hashtbl.replace load_path_for mdl (dir :: old)
37
38 (* Used by emacs ? *)
39 let emacs = ref false