Skip to content

Fix #8487: Debugger confuses variables

Roland Senn requested to merge RolandSenn/ghc:T8487 into master

To display the free variables for a single breakpoint, GHCi pulls out the information from the fields modBreaks_breakInfo and modBreaks_vars of the ModBreaks data structure. For a specific breakpoint this gives 2 lists of type Id and OccName. They are used to create the Id's for the free variables and must be kept in sync. If we remove an element from the Id list, then we also must remove the corresponding element from the OccName list.

Edited by Roland Senn

Merge request reports