Fix #8487: Debugger confuses variables

Authored by RolandSenn on Jul 18 2019, 3:41 AM.

Description

Fix Trac #8487: Debugger confuses variables

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.

(cherry picked from commit 32be44613fed3fa7bff7190381acbdaa8ea15cfc)

Details

Committed
bgamariMon, Aug 5, 9:42 AM
Parents
rGHC0acb171c0d54: Bump text submodule to 1.2.4.0-rc
Branches
Unknown
Tags
Unknown