Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark mode
🐛 LLDB
🐛 LLDB

Using LLDB

Scripting LLDB

Developing LLDB

External Links

Back to top

ScriptedThread#

classlldb.plugins.scripted_process.ScriptedThread(process,args)#

The base class for a scripted thread.

Most of the base class methods are@abstractmethod that need to beoverwritten by the inheriting class.

Methods Summary

get_extended_info()

Get scripted thread extended information.

get_name()

Get the scripted thread name.

get_queue()

Get the scripted thread associated queue name.

get_register_context()

Get the scripted thread register context

get_register_info()

get_scripted_frame_plugin()

Get scripted frame plugin name.

get_stackframes()

Get the list of stack frames for the scripted thread.

get_state()

Get the scripted thread state type.

get_stop_reason()

Get the dictionary describing the stop reason type with some data.

get_thread_id()

Get the scripted thread identifier.

get_thread_idx()

Get the scripted thread index.

Methods Documentation

get_extended_info()#

Get scripted thread extended information.

Returns:
List: A list containing the extended information for the scripted process.

None if the thread as no extended information.

get_name()#

Get the scripted thread name.

Returns:

str: The name of the scripted thread.

get_queue()#
Get the scripted thread associated queue name.

This method is optional.

Returns:

str: The queue name associated with the scripted thread.

abstractget_register_context()#

Get the scripted thread register context

Returns:

str: A byte representing all register’s value.

get_register_info()#
get_scripted_frame_plugin()#

Get scripted frame plugin name.

Returns:

str: Name of the scripted frame plugin.

get_stackframes()#

Get the list of stack frames for the scripted thread.

scripted_frame={idx=0,pc=0xbadc0ffee}
Returns:
List[scripted_frame]: A list ofscripted_frame dictionaries

containing at least for each entry, the frame index andthe program counter value for that frame.The list can be empty.

get_state()#

Get the scripted thread state type.

eStateStopped,///<Processorthreadisstoppedandcanbeexamined.eStateRunning,///<Processorthreadisrunningandcan't be examined.eStateStepping,///<Processorthreadisintheprocessofsteppingand///cannotbeexamined.eStateCrashed,///<Processorthreadhascrashedandcanbeexamined.
Returns:
int: The state type of the scripted thread.

Returns lldb.eStateStopped by default.

abstractget_stop_reason()#
Get the dictionary describing the stop reason type with some data.

This method is optional.

Returns:

Dict: The dictionary holding the stop reason type and the possiblythe stop reason data.

get_thread_id()#

Get the scripted thread identifier.

Returns:

int: The identifier of the scripted thread.

get_thread_idx()#

Get the scripted thread index.

Returns:

int: The index of the scripted thread in the scripted process.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp