File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ Bug Fixes:
159159- PR#5620: invalid printing of type manifest (camlp4 revised syntax)
160160- PR#5637: invalid printing of anonymous type parameters (camlp4 revised syntax)
161161- PR#5643: issues with .cfi and .loc directives generated by ocamlopt -g
162+ - PR#5647: Cannot use install_printer in debugger
162163- PR#5651: printer for abstract data type (camlp4 revised syntax)
163164- PR#5655: ocamlbuild doesn't pass cflags when building C stubs
164165- PR#5661: fixes for the test suite
Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ let rec eval_path = function
9595
9696(* Install, remove a printer (as in toplevel/topdirs) *)
9797
98+ (* since 4.00, "topdirs.cmi" is not in the same directory as the standard
99+ libray, so we load it beforehand as it cannot be found in the search path. *)
100+ let () =
101+ let compiler_libs =
102+ Filename. concat Config. standard_library " compiler-libs" in
103+ let topdirs =
104+ Filename. concat compiler_libs " topdirs.cmi" in
105+ ignore (Env. read_signature " Topdirs" topdirs)
106+
98107let match_printer_type desc typename =
99108 let (printer_type, _) =
100109 try
You can’t perform that action at this time.
0 commit comments