GDBThreadGroup.st
changeset 117 17e5e955c3c1
parent 106 12c96f17fc53
child 124 74c24ce40251
--- a/GDBThreadGroup.st	Tue Mar 27 08:55:29 2018 +0100
+++ b/GDBThreadGroup.st	Tue Mar 27 08:57:13 2018 +0100
@@ -99,8 +99,9 @@
 !GDBThreadGroup methodsFor:'accessing'!
 
 executable
-    (executable isNil and:[ pid notNil ]) ifTrue:[
+    (executable isNil and:[ pid notNil and:[self isStopped or:[debugger hasFeature:'async']]]) ifTrue:[
         | result tg |
+
         result := debugger send: GDBMI_list_thread_groups new.
         result status ~~ CommandStatusDone ifTrue:[ 
             self error: 'Failed to send command.'
@@ -111,6 +112,7 @@
     ^ executable
 
     "Created: / 06-06-2017 / 00:04:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 26-03-2018 / 21:44:53 / jv"
 !
 
 exitCode