Skip to content

Commit

Permalink
Restore selected frame after context_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
borismol committed Jun 24, 2021
1 parent 71dbadd commit 762e73d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gef.py
Expand Up @@ -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)
Expand All @@ -8252,6 +8253,7 @@ def reason():
i += 1

selected_thread.switch()
selected_frame.select()
return

def context_additional_information(self):
Expand Down

0 comments on commit 762e73d

Please sign in to comment.