diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-04-04 16:29:55 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-04-04 16:36:05 +0200 |
| commit | 8b61b194f2f4759689844ab57f2ca7a4b912c468 (patch) | |
| tree | f56a1099cefd1d6df0c296eec09261685e8ed504 /src/GDB.hs | |
| parent | 7e57c8fddac5c9310efb49d4bc8003659b9e68b4 (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.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |