Skip to content

Commit fa0e0b6

Browse files
committed
PR#5647: Cannot use install_printer in debugger
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12672 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1 parent 61ff6ed commit fa0e0b6

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

debugger/loadprinter.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
98107
let match_printer_type desc typename =
99108
let (printer_type, _) =
100109
try

0 commit comments

Comments
 (0)