GDBUnixProcess.st
changeset 294 7c84fcc868e2
parent 293 d1422e1ee1bd
--- a/GDBUnixProcess.st	Mon Jul 24 23:15:14 2023 +0100
+++ b/GDBUnixProcess.st	Wed Aug 02 13:21:16 2023 +0100
@@ -89,15 +89,17 @@
 !GDBUnixProcess methodsFor:'accessing'!
 
 consoleInput
-    ^ consolePTY master
+    ^ consolePTY masterWriteStream
 
     "Created: / 02-06-2017 / 23:36:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 02-08-2023 / 12:50:52 / Jan Vrany <jan.vrany@labware.com>"
 !
 
 consoleOutput
-    ^ consolePTY master
+    ^ consolePTY masterReadStream
 
     "Created: / 02-06-2017 / 23:36:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 02-08-2023 / 12:50:41 / Jan Vrany <jan.vrany@labware.com>"
 !
 
 nativeTargetFeatures
@@ -128,9 +130,9 @@
 
     pid := GDBPortlib current 
                  spawn: argv
-                 stdin: conpty slave
-                 stdout: conpty slave
-                 stderr: conpty slave
+                 stdin: conpty slaveReadStream
+                 stdout: conpty slaveWriteStream
+                 stderr: conpty slaveWriteStream
                  exit: [:stat | self exited: stat ].             
     pid isNil ifTrue:[
         conpty close.
@@ -140,11 +142,12 @@
 
     consolePTY := conpty.
     debuggerPTY := dbgpty.
-    debuggerInput := debuggerOutput := debuggerPTY master.
+    debuggerInput := dbgpty masterWriteStream. 
+    debuggerOutput := dbgpty masterReadStream.
 
     "Created: / 12-12-2018 / 20:13:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 11-06-2019 / 11:44:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 24-07-2023 / 23:00:19 / Jan Vrany <jan.vrany@labware.com>"
+    "Modified: / 02-08-2023 / 13:07:17 / Jan Vrany <jan.vrany@labware.com>"
 !
 
 release