Set `mi-always-notify` to 'on' (if supported)
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 12 Jun 2019 12:38:16 +0100
changeset 190 0509fe9ad879
parent 189 ce3e5dab2e60
child 191 18b32a5811f4
Set `mi-always-notify` to 'on' (if supported) ...in order to get all notifications. stx:libgdbs and VDB rely on notifications being sent in order to keep internal data and UI up-to-date. If `mi-always-notify` is not supported, things may not work as espected. You have been warned!
GDBDebugger.st
--- a/GDBDebugger.st	Tue Jun 11 11:45:29 2019 +0100
+++ b/GDBDebugger.st	Wed Jun 12 12:38:16 2019 +0100
@@ -1067,7 +1067,15 @@
     connection inferiorPTY notNil ifTrue:[
         self send: (GDBMI_inferior_tty_set arguments: (Array with: connection inferiorPTY name)).
     ].
-    self send: (GDBMI_gdb_set arguments: #('mi-async' 'on')).
+    self setParameter: 'mi-async' to: 'on'.
+
+    "/ If the following fails it means that you're using GDB without
+    "/ all required patches. Please see:
+    "/
+    "/  * https://bitbucket.org/janvrany/jv-libgdbs/src/tip/doc/GDB.md
+    "/  * https://bitbucket.org/janvrany/jv-vdb/src/2bd269c89e8ca67816b41be2dbf6185b9005f46a/doc/Invoking.md
+    "/
+    GDBError catch: [self setParameter: 'mi-always-notify' to: 'on'].
 
     result := self send: GDBMI_list_features new.
     debuggerFeatures := result propertyAt: #features.
@@ -1078,7 +1086,7 @@
 
     "Created: / 20-06-2014 / 21:45:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 26-03-2018 / 21:36:31 / jv"
-    "Modified: / 28-01-2019 / 15:45:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 12-06-2019 / 12:35:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 release