Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Packed modules: miscommunication emacs/ocamldebug #7540
Original bug ID: 7540
[ Original summary was: Packed modules: setting "break" broken in ocamldebug + miscommunication emacs/ocamldebug. First issue is solved. ]
There seems to be a bug with ocamldebug on packed modules. In the reproducible script below, the first "break" works but the second gives "Can't find any event there". Note however that executing step by step works well.
This seems related to the call to "Hashtbl.add all_events_by_module md sorted_evl" in Symbols.read_symbols which binds all modules of a pack to the name of the first module.
There is also a communication bug when calling ocamldebug from emacs (at least using tuareg). Commands of the form
Steps to reproduce
echo "let f x = x" > a.ml
Since I already tried a fix for testing, I shall try to submit it to the PR system in case it can ever save time.
Comment author: herbelin
I had another issue with tuareg which does not support sending breakpoints to ocamldebug when modules are in a pack. I reported this at ocaml/tuareg#136 but I have no clue how to fix that, since either tuareg should get a way to know that some files are in a pack, or ocamldebug being able to recover the fully qualified module name from the base name, but this would somehow defeat the purpose of packing.
Actually, the issue seems to exist also for the version of camldebug.el shipped with ocaml (