xref: /llvm-project/lldb/test/API/functionalities/completion/thread_plan_script.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1f99a18bbSGongyu Deng#############################################################################
2f99a18bbSGongyu Deng# This script is just to provide a thread plan which won't be popped instantly
3f99a18bbSGongyu Deng# for the completion test. The thread plan class below won't really do anything
4f99a18bbSGongyu Deng# itself.
5f99a18bbSGongyu Deng
6f99a18bbSGongyu Dengimport lldb
7f99a18bbSGongyu Deng
8f99a18bbSGongyu Deng
9*2238dcc3SJonas Devlieghereclass PushPlanStack:
10f99a18bbSGongyu Deng    def __init__(self, thread_plan, dict):
11f99a18bbSGongyu Deng        pass
12f99a18bbSGongyu Deng
13f99a18bbSGongyu Deng    def explains_stop(self, event):
14f99a18bbSGongyu Deng        return False
15f99a18bbSGongyu Deng
16f99a18bbSGongyu Deng    def should_stop(self, event):
17f99a18bbSGongyu Deng        return True
18f99a18bbSGongyu Deng
19f99a18bbSGongyu Deng    def should_step(self):
20f99a18bbSGongyu Deng        return True
21