GDBDebugger.st
changeset 104 4add55336dfe
parent 102 d573a3b2abe2
child 105 1d4ca4370d05
--- a/GDBDebugger.st	Thu Feb 15 08:46:03 2018 +0000
+++ b/GDBDebugger.st	Sat Feb 03 22:37:17 2018 +0000
@@ -417,6 +417,28 @@
 
     "Created: / 05-06-2017 / 17:05:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 25-01-2018 / 23:28:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+selectFrame: aGDBFrame
+    "
+    Set the context frame to given frame. This frame is then
+    the contex frame for other commands, like finish, info frame
+    and so on
+      "
+    self send:(GDBMI_thread_select new arguments:(Array with:aGDBFrame thread id))andWait:false.
+    self send:(GDBMI_stack_select_frame new arguments:(Array with:aGDBFrame level)) andWait:false.
+
+    "Created: / 01-02-2018 / 22:27:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+selectThread: aGDBThread
+    "
+    Set the context thread to given thread. This thread is then
+    the contex thread for other commands (if no thread id is given)
+    "
+    self send:(GDBMI_thread_select new arguments:(Array with:aGDBThread id))andWait:false.
+
+    "Created: / 01-02-2018 / 22:25:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !GDBDebugger methodsFor:'evaluating'!