GDBFrame: fix for framew with empty variables
authorJan Vrany <jan.vrany@fit.cvut.cz>
Tue, 10 Mar 2015 10:00:55 +0000
changeset 71 016b716773e3
parent 70 6d7285bb1703
child 72 eb4eea3ebf4c
GDBFrame: fix for framew with empty variables
GDBFrame.st
--- a/GDBFrame.st	Tue Mar 10 09:57:21 2015 +0000
+++ b/GDBFrame.st	Tue Mar 10 10:00:55 2015 +0000
@@ -9,6 +9,7 @@
 	category:'GDB-Core'
 !
 
+
 !GDBFrame class methodsFor:'accessing - GDB value descriptors'!
 
 description
@@ -66,7 +67,7 @@
             | result |
 
             result := debugger send: (GDBMI_stack_list_variables new arguments: { '--thread' . thread id . '--frame' . level . '--simple-values' }).
-            (result propertyAt: #variables)
+            (result propertyAt: #variables) ? #()
                 do:[ :each | each setFrame: self ];
                 yourself
         ].
@@ -74,7 +75,7 @@
     ^ variables value
 
     "Created: / 27-02-2015 / 14:56:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 28-02-2015 / 01:04:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 09-03-2015 / 23:43:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !GDBFrame methodsFor:'printing & storing'!
@@ -115,3 +116,10 @@
     "Modified: / 27-02-2015 / 15:21:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
+!GDBFrame class methodsFor:'documentation'!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
+! !
+