summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/T8487.script
Commit message (Collapse)AuthorAgeFilesLines
* Fix #8487: Debugger confuses variablesRoland Senn2019-07-211-0/+3
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 types 'Id` (`Var`) 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 Names list, then we also must remove the corresponding element from the OccNames list.