Support debuggee compiled with profiling
Foolish user that I am, I tried to connect to a debuggee that happened to be compiled with profiling enabled, and was presented with this:
ghc-debug-brick: toEnum{ClosureType}: tag (135737545) is outside of enumeration's range (0,64)
CallStack (from HasCallStack):
error, called at libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs:84:12 in ghc-heap-9.4.4:GHC.Exts.Heap.ClosureTypes
I'm guessing that https://gitlab.haskell.org/ghc/ghc-debug/-/blob/master/common/src/GHC/Debug/Types/Ptr.hs#L99 is related.