Use `-iex` instead of `-ex` to execute initialization on GDB side
authorJan Vrany <jan.vrany@labware.com>
Mon, 19 Oct 2020 11:29:34 +0100
changeset 212 234e818f9288
parent 211 d493b4969b59
child 213 b13fd3784ba0
Use `-iex` instead of `-ex` to execute initialization on GDB side This makes them to execute before prompt is shown ans inferior is loaded. Slightly nicer.
GDBStXSimpleProcess.st
GDBStXUnixProcess.st
--- a/GDBStXSimpleProcess.st	Wed Nov 11 23:12:37 2020 +0000
+++ b/GDBStXSimpleProcess.st	Mon Oct 19 11:29:34 2020 +0100
@@ -1,6 +1,7 @@
 "
 jv:libgdbs - GNU Debugger Interface Library
 Copyright (C) 2015-now Jan Vrany
+Copyright (C) 2020 LabWare
 
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
@@ -33,6 +34,7 @@
 "
 jv:libgdbs - GNU Debugger Interface Library
 Copyright (C) 2015-now Jan Vrany
+Copyright (C) 2020 LabWare
 
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
@@ -200,7 +202,7 @@
              at: 1 put: '-q';
              at: 2 put: '--interpreter';
              at: 3 put: 'mi';
-             at: 4 put: '-ex';
+             at: 4 put: '-iex';
              at: 5 put: 'set new-console on';
              yourself).
 
@@ -252,6 +254,7 @@
     "Created: / 12-12-2018 / 20:13:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 11-06-2019 / 11:45:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified (comment): / 25-06-2019 / 21:10:02 / jv"
+    "Modified: / 19-10-2020 / 11:12:24 / Jan Vrany <jan.vrany@labware.com>"
 !
 
 release
--- a/GDBStXUnixProcess.st	Wed Nov 11 23:12:37 2020 +0000
+++ b/GDBStXUnixProcess.st	Mon Oct 19 11:29:34 2020 +0100
@@ -1,6 +1,7 @@
 "
 jv:libgdbs - GNU Debugger Interface Library
 Copyright (C) 2015-now Jan Vrany
+Copyright (C) 2020 LabWare
 
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
@@ -33,6 +34,7 @@
 "
 jv:libgdbs - GNU Debugger Interface Library
 Copyright (C) 2015-now Jan Vrany
+Copyright (C) 2020 LabWare
 
 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
@@ -159,9 +161,9 @@
     argv := ((self command2argv: command)) ,
             ((Array new: 5)
                 at: 1 put: '-q';
-                at: 2 put: '-ex';
+                at: 2 put: '-iex';
                 at: 3 put: 'new-ui mi ', dbgpty name;
-                at: 4 put: '-ex';
+                at: 4 put: '-iex';
                 at: 5 put: 'set pagination off';
                 yourself).
 
@@ -193,6 +195,7 @@
 
     "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: / 19-10-2020 / 11:12:38 / Jan Vrany <jan.vrany@labware.com>"
 !
 
 release