summaryrefslogtreecommitdiff
path: root/src/GDB.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-04-04 16:29:55 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-04-04 16:36:05 +0200
commit8b61b194f2f4759689844ab57f2ca7a4b912c468 (patch)
treef56a1099cefd1d6df0c296eec09261685e8ed504 /src/GDB.hs
parent7e57c8fddac5c9310efb49d4bc8003659b9e68b4 (diff)
Add pid member to the Process type
Changelog: Added `pid` member to the `Process` type to get its system PID
Diffstat (limited to 'src/GDB.hs')
-rw-r--r--src/GDB.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GDB.hs b/src/GDB.hs
index ccb9dc3..4151946 100644
--- a/src/GDB.hs
+++ b/src/GDB.hs
@@ -73,6 +73,7 @@ gdbStart onCrash = do
}
pout <- liftIO $ newTVarIO []
ignore <- liftIO $ newTVarIO ( 0, [] )
+ pid <- liftIO $ getPid handle
let process = Process
{ procId = ProcessId (-2)
@@ -83,6 +84,7 @@ gdbStart onCrash = do
, procIgnore = ignore
, procKillWith = Nothing
, procNode = undefined
+ , procPid = pid
}
gdb <- GDB
<$> pure process