PR#6888: The list command of ocamldebug uses the wrong file

master
Damien Doligez 2016-02-08 18:05:16 +01:00
parent 67342f4686
commit 8c9ac88eb6
2 changed files with 7 additions and 1 deletions

View File

@ -392,6 +392,8 @@ Bug fixes:
- PR#6808: the parsing of OCAMLRUNPARAM is too lax
(Damien Doligez)
- PR#6874: Inefficient code generated for module function arguments
- PR#6888: The list command of ocamldebug uses the wrong file
(Damien Doligez, report by Pierre-Marie Pédrot)
- PR#6897: Bad error message for some pattern matching on extensible variants
- PR#6899: Optional parameters and non generalizable type variables
(Thomas Refis and Leo White)

View File

@ -777,7 +777,11 @@ let instr_list ppf lexbuf =
| Not_found ->
("", -1, -1)
in
let mdle = convert_module (module_of_longident mo) in
let mdle =
match mo with
| None -> curr_mod
| _ -> convert_module (module_of_longident mo)
in
let pos = Lexing.dummy_pos in
let buffer =
try get_buffer pos mdle with