From 6671279c2b4c874291ea67ff67c39f24e1642109 Mon Sep 17 00:00:00 2001
From: Matthew Pickering <matthewtpickering@gmail.com>
Date: Tue, 6 Jun 2023 11:00:16 +0100
Subject: [PATCH] Prepare 0.5.0.0 release

---
 client/CHANGELOG.md                   | 8 ++++++++
 client/ghc-debug-client.cabal         | 6 +++---
 common/CHANGELOG.md                   | 4 ++++
 common/ghc-debug-common.cabal         | 4 ++--
 convention/CHANGELOG.md               | 4 ++++
 convention/ghc-debug-convention.cabal | 2 +-
 ghc-debug-brick/CHANGELOG.md          | 4 ++++
 ghc-debug-brick/ghc-debug-brick.cabal | 8 ++++----
 stub/CHANGELOG.md                     | 4 ++++
 stub/ghc-debug-stub.cabal             | 4 ++--
 test/ghc-debugger.cabal               | 6 +++---
 11 files changed, 39 insertions(+), 15 deletions(-)

diff --git a/client/CHANGELOG.md b/client/CHANGELOG.md
index 4213beb..bc55648 100644
--- a/client/CHANGELOG.md
+++ b/client/CHANGELOG.md
@@ -1,5 +1,13 @@
 # Revision history for ghc-debug-client
 
+## 0.5.0.0 -- 2023-06-06
+
+* Remove eventlog2html dependency and hence `profile` function. These can be
+  implemented in your own library if you want to use them.
+* Update with support for ghc-9.4 and ghc-9.6.
+* Add support for debugging over a TCP socket (`withDebuggeeConnectTCP`)
+
+
 ## 0.4.0.1 -- 2023-03-09
 
 * Relax some version bounds and use eventlog2html 0.9.3
diff --git a/client/ghc-debug-client.cabal b/client/ghc-debug-client.cabal
index 33f6dc0..9488cbd 100644
--- a/client/ghc-debug-client.cabal
+++ b/client/ghc-debug-client.cabal
@@ -1,6 +1,6 @@
 cabal-version:       3.0
 name:                ghc-debug-client
-version:             0.4.0.1
+version:             0.5.0.0
 synopsis:            Useful functions for writing heap analysis tools which use
                      ghc-debug.
 description:         Useful functions for writing heap analysis tools which use
@@ -42,8 +42,8 @@ library
                        network >= 2.6 ,
                        containers ^>= 0.6,
                        unordered-containers ^>= 0.2.13,
-                       ghc-debug-common == 0.4.0.0,
-                       ghc-debug-convention == 0.4.0.0,
+                       ghc-debug-common == 0.5.0.0,
+                       ghc-debug-convention == 0.5.0.0,
                        text >= 1.2.4 && < 3,
                        process ^>= 1.6,
                        filepath ^>= 1.4,
diff --git a/common/CHANGELOG.md b/common/CHANGELOG.md
index ee1da93..1af120f 100644
--- a/common/CHANGELOG.md
+++ b/common/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for ghc-debug-common
 
+## 0.5.0.0 -- 2023-06-06
+
+* Bump to keep in sync with other libraries
+
 ## 0.4.0.0 -- 2022-12-14
 
 * Add RequestSRT to allow support for tracing SRTs
diff --git a/common/ghc-debug-common.cabal b/common/ghc-debug-common.cabal
index 659199b..d4dac63 100644
--- a/common/ghc-debug-common.cabal
+++ b/common/ghc-debug-common.cabal
@@ -1,6 +1,6 @@
 cabal-version:       3.0
 name:                ghc-debug-common
-version:             0.4.0.0
+version:             0.5.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
@@ -38,7 +38,7 @@ library
                        transformers >= 0.5 && < 0.7 ,
                        dom-lt ^>= 0.2,
                        unordered-containers ^>= 0.2,
-                       ghc-debug-convention == 0.4.0.0,
+                       ghc-debug-convention == 0.5.0.0,
                        deepseq ^>= 1.4
 
   hs-source-dirs:      src
diff --git a/convention/CHANGELOG.md b/convention/CHANGELOG.md
index d160bd4..a282558 100644
--- a/convention/CHANGELOG.md
+++ b/convention/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for convention
 
+## 0.5.0.0 -- 2023-06-06
+
+* No changes.
+
 ## 0.4.0.0 -- 2022-12-14
 
 * No changes.
diff --git a/convention/ghc-debug-convention.cabal b/convention/ghc-debug-convention.cabal
index f5a61a3..abc8945 100644
--- a/convention/ghc-debug-convention.cabal
+++ b/convention/ghc-debug-convention.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               ghc-debug-convention
-version:            0.4.0.0
+version:            0.5.0.0
 synopsis: Definitions needed by ghc-debug-stub and ghc-debug-common
 description: Definitions needed by ghc-debug-stub and ghc-debug-common
 -- bug-reports:
diff --git a/ghc-debug-brick/CHANGELOG.md b/ghc-debug-brick/CHANGELOG.md
index 8b51eb3..0ed0ccc 100644
--- a/ghc-debug-brick/CHANGELOG.md
+++ b/ghc-debug-brick/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for ghc-debug-brick
 
+## 0.5.0.0 -- 2023-06-06
+
+* Add find closure by info table address
+
 ## 0.4.0.1 -- 2023-03-09
 
 * Fix snapshot mode
diff --git a/ghc-debug-brick/ghc-debug-brick.cabal b/ghc-debug-brick/ghc-debug-brick.cabal
index bff072a..a818b50 100644
--- a/ghc-debug-brick/ghc-debug-brick.cabal
+++ b/ghc-debug-brick/ghc-debug-brick.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.4
 name:                ghc-debug-brick
-version:             0.4.0.1
+version:             0.5.0.0
 synopsis:            A simple TUI using ghc-debug
 description:         A simple TUI using ghc-debug
 bug-reports:         https://gitlab.haskell.org/ghc/ghc-debug/-/issues
@@ -29,9 +29,9 @@ executable ghc-debug-brick
                      , time
                      , deepseq
                      , microlens
-                     , ghc-debug-client == 0.4.0.1
-                     , ghc-debug-common == 0.4.0.0
-                     , ghc-debug-convention == 0.4.0.0
+                     , ghc-debug-client == 0.5.0.0
+                     , ghc-debug-common == 0.5.0.0
+                     , ghc-debug-convention == 0.5.0.0
                      , unordered-containers
                      , exceptions
                      , contra-tracer
diff --git a/stub/CHANGELOG.md b/stub/CHANGELOG.md
index 67b43be..9105182 100644
--- a/stub/CHANGELOG.md
+++ b/stub/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for ghc-debug-stub
 
+## 0.5.0.0 -- 2023-06-06
+
+* Add support for debugging over a TCP socket (`withGhcDebugTCP`)
+
 ## 0.4.0.0 -- 2022-12-14
 
 * Fix compatability with HEAD/9.4/9.2
diff --git a/stub/ghc-debug-stub.cabal b/stub/ghc-debug-stub.cabal
index 5e12c1b..73cf65c 100644
--- a/stub/ghc-debug-stub.cabal
+++ b/stub/ghc-debug-stub.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.4
 name:                ghc-debug-stub
-version:             0.4.0.0
+version:             0.5.0.0
 synopsis:            Functions for instrumenting your application so the heap
                      can be analysed with ghc-debug-common.
 description:         Functions for instrumenting your application so the heap can
@@ -27,7 +27,7 @@ library
                      , directory ^>= 1.3
                      , filepath ^>= 1.4
                      , ghc-prim >= 0.8 && < 0.11
-                     , ghc-debug-convention == 0.4.0.0
+                     , ghc-debug-convention == 0.5.0.0
   default-language:    Haskell2010
   cxx-sources:         cbits/stub.cpp, cbits/socket.cpp, cbits/trace.cpp
   cxx-options:         -std=gnu++11 -pthread -O3 -g3 -DTHREADED_RTS
diff --git a/test/ghc-debugger.cabal b/test/ghc-debugger.cabal
index b7cc60d..2b58f6e 100644
--- a/test/ghc-debugger.cabal
+++ b/test/ghc-debugger.cabal
@@ -1,5 +1,5 @@
 name:                ghc-debugger
-version:             0.4.0.0
+version:             0.5.0.0
 -- synopsis:
 -- description:
 homepage:            https://github.com/bgamari/ghc-debug
@@ -54,8 +54,8 @@ test-suite system-test
     , tasty
     , tasty-hspec
     , process
-    , ghc-debug-client == 0.4.0.0
-    , ghc-debug-common == 0.4.0.0
+    , ghc-debug-client == 0.5.0.0
+    , ghc-debug-common == 0.5.0.0
     , directory
     , async
     , extra
-- 
GitLab