From 762e73df4ac1ef016f7e9335c8ba6a3eaaaaf93a Mon Sep 17 00:00:00 2001 From: Boris Molodenkov Date: Fri, 25 Jun 2021 01:24:40 +0300 Subject: [PATCH] Restore selected frame after context_threads --- gef.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gef.py b/gef.py index 311d86d2d..3a3fb60fa 100644 --- a/gef.py +++ b/gef.py @@ -8233,6 +8233,7 @@ def reason(): return selected_thread = gdb.selected_thread() + selected_frame = gdb.selected_frame() for i, thread in enumerate(threads): line = """[{:s}] Id {:d}, """.format(Color.colorify("#{:d}".format(i), "bold green" if thread == selected_thread else "bold pink"), thread.num) @@ -8252,6 +8253,7 @@ def reason(): i += 1 selected_thread.switch() + selected_frame.select() return def context_additional_information(self):