PassthroughScriptedProcess#

class lldb.plugins.scripted_process.PassthroughScriptedProcess(exe_ctx, args, launched_driving_process=True)#

Attributes Summary

Methods Summary

get_memory_region_containing_address(addr)

Get the memory region for the scripted process, containing a

get_process_id()

Get the scripted process identifier.

get_scripted_thread_plugin()

Get scripted thread plugin name.

is_alive()

Check if the scripted process is alive.

read_memory_at_address(addr, size, error)

Get a memory buffer from the scripted process at a certain address,

write_memory_at_address(addr, data, error)

Write a buffer to the scripted process memory.

Attributes Documentation

driving_process = None#
driving_target = None#

Methods Documentation

get_memory_region_containing_address(addr)#
Get the memory region for the scripted process, containing a

specific address.

Args:
addr (int): Address to look for in the scripted process memory

regions.

Returns:
lldb.SBMemoryRegionInfo: The memory region containing the address.

None if out of bounds.

get_process_id()#

Get the scripted process identifier.

Returns:

int: The scripted process identifier.

get_scripted_thread_plugin()#

Get scripted thread plugin name.

Returns:

str: Name of the scripted thread plugin.

is_alive()#

Check if the scripted process is alive.

Returns:

bool: True if scripted process is alive. False otherwise.

read_memory_at_address(addr, size, error)#
Get a memory buffer from the scripted process at a certain address,

of a certain size.

Args:

addr (int): Address from which we should start reading. size (int): Size of the memory to read. error (lldb.SBError): Error object.

Returns:
lldb.SBData: An SBData buffer with the target byte size and

byte order storing the memory read.

write_memory_at_address(addr, data, error)#

Write a buffer to the scripted process memory.

Args:

addr (int): Address from which we should start reading. data (lldb.SBData): An SBData buffer to write to the process memory. error (lldb.SBError): Error object.

Returns:

size (int): Size of the memory to read.