summaryrefslogtreecommitdiff
path: root/debugger/loadprinter.ml
diff options
context:
space:
mode:
Diffstat (limited to 'debugger/loadprinter.ml')
-rw-r--r--debugger/loadprinter.ml9
1 files changed, 9 insertions, 0 deletions
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