From fa0e0b6ba740c13798ea7306ece93a590c84fff4 Mon Sep 17 00:00:00 2001 From: Xavier Clerc Date: Mon, 9 Jul 2012 12:40:43 +0000 Subject: PR#5647: Cannot use install_printer in debugger git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12672 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- debugger/loadprinter.ml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'debugger/loadprinter.ml') diff --git a/debugger/loadprinter.ml b/debugger/loadprinter.ml index 0395cfb307..1c0427a9c5 100644 --- a/debugger/loadprinter.ml +++ b/debugger/loadprinter.ml @@ -95,6 +95,15 @@ let rec eval_path = function (* Install, remove a printer (as in toplevel/topdirs) *) +(* since 4.00, "topdirs.cmi" is not in the same directory as the standard + libray, so we load it beforehand as it cannot be found in the search path. *) +let () = + let compiler_libs = + Filename.concat Config.standard_library "compiler-libs" in + let topdirs = + Filename.concat compiler_libs "topdirs.cmi" in + ignore (Env.read_signature "Topdirs" topdirs) + let match_printer_type desc typename = let (printer_type, _) = try -- cgit v1.2.1