ghc-debug-common 0.1.0.0 → 0.2.0.0
raw patch · 4 files changed
+11/−6 lines, 4 filesdep ~basedep ~ghc-debug-conventiondep ~hashablePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, ghc-debug-convention, hashable
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−2
- cbits/Heap.c +1/−1
- ghc-debug-common.cabal +2/−2
- src/GHC/Debug/Decode.hs +2/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for ghc-debug-common -## 0.1.0.0 -- YYYY-mm-dd+## 0.2.0.0 -- 2021-12-06 -* First version. Released on an unsuspecting world.+* Second version++## 0.1.0.0 -- 2021-06-14++* First version.
cbits/Heap.c view
@@ -11,7 +11,7 @@ // the closure and then we can allocate space on the heap and copy them // there StgClosure *ptrs[size];- StgWord nptrs = collect_pointers(closure, size, ptrs);+ StgWord nptrs = collect_pointers(closure, ptrs); StgArrBytes *arr = (StgArrBytes *)allocate(cap, sizeofW(StgArrBytes) + nptrs); TICK_ALLOC_PRIM(sizeofW(StgArrBytes), nptrs, 0);
ghc-debug-common.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: ghc-debug-common-version: 0.1.0.0+version: 0.2.0.0 synopsis: Connect to a socket created by ghc-debug-stub and analyse the heap of the debuggee program. description: Connect to a socket created by ghc-debug-stub and analyse@@ -36,7 +36,7 @@ transformers ^>= 0.5, dom-lt ^>= 0.2, unordered-containers ^>= 0.2,- ghc-debug-convention ^>= 0.1,+ ghc-debug-convention ^>= 0.2, deepseq ^>= 1.4 hs-source-dirs: src
src/GHC/Debug/Decode.hs view
@@ -4,6 +4,7 @@ {-# LANGUAGE GHCForeignImportPrim #-} {-# LANGUAGE UnliftedFFITypes #-} {-# LANGUAGE BangPatterns #-}+{-# LANGUAGE TypeApplications #-} -- | Low-level functions for decoding a closure representation from the raw -- bytes module GHC.Debug.Decode ( decodeClosure@@ -267,7 +268,7 @@ id absurd mkClosurePtr . convertClosure itb- $ fmap (\(W# w) -> (W64# w)) r+ $ fmap (fromIntegral @Word @Word64) r fixTNTC :: Ptr a -> Ptr StgInfoTable