GDBDebugger.st
changeset 95 f417138e9c48
parent 93 b1715ebf8df1
child 96 43591d874c9f
--- a/GDBDebugger.st	Mon Jan 08 19:43:49 2018 +0000
+++ b/GDBDebugger.st	Thu Jan 11 23:53:06 2018 +0000
@@ -507,12 +507,13 @@
     aGDBBreakpointModifiedEvent breakpoints do:[:new | 
         | old |    
 
-        old := breakpoints detect:[:e | e number == new number ].
+        old := breakpoints detect:[:e | e number = new number ].
         old updateFrom: new.
     ].
 
     "Created: / 06-07-2017 / 16:28:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 12-11-2017 / 20:18:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 15-01-2018 / 23:11:52 / jv"
 !
 
 onCommandEvent:aGDBCommandEvent 
@@ -659,8 +660,9 @@
     connection eventDispatchStart.
     Delay waitForMilliseconds:100.  
 
-"/    self send: (GDBMICommand inferiorTtySet: driver inferiorPTY name).
-    self send: (GDBMI_inferior_tty_set arguments: (Array with: connection inferiorPTY name)).
+    connection inferiorPTY notNil ifTrue:[
+        self send: (GDBMI_inferior_tty_set arguments: (Array with: connection inferiorPTY name)).
+    ].
     self send: (GDBMI_gdb_set arguments: #('target-async' 'on')).
 
     prettyPrintingEnabled := false.
@@ -668,6 +670,7 @@
 
     "Created: / 20-06-2014 / 21:45:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 17-11-2017 / 20:14:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 12-01-2018 / 00:13:09 / jv"
 !
 
 release