Index: lldb/examples/python/scripted_process/scripted_process.py =================================================================== --- lldb/examples/python/scripted_process/scripted_process.py +++ lldb/examples/python/scripted_process/scripted_process.py @@ -76,6 +76,15 @@ """ pass + def get_most_relevant_thread_index(self): + """ Get the index of the most releveant scripted process thread. + + Returns: + Int: The most relevant thread index according to the user. + (default: 0) + """ + return 0 + @abstractmethod def get_registers_for_thread(self, tid): """ Get the register context dictionary for a certain thread of Index: lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py =================================================================== --- lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py +++ lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py @@ -57,6 +57,9 @@ return data + def get_most_relevant_thread_index(self): + return 3 + def get_loaded_images(self): # TODO: Iterate over corefile_target modules and build a data structure # from it.