From 15cd237cc2afc07074c69ff4bd6c63dd3d6e0ebd Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 14 Nov 2022 00:17:22 -0800 Subject: [PATCH] [lldb] Re-phase comments in `ScriptedProcess.get_loaded_images` method (NFC) Signed-off-by: Med Ismail Bennani --- .../examples/python/scripted_process/scripted_process.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lldb/examples/python/scripted_process/scripted_process.py b/lldb/examples/python/scripted_process/scripted_process.py index 29dbd04..86ec1db 100644 --- a/lldb/examples/python/scripted_process/scripted_process.py +++ b/lldb/examples/python/scripted_process/scripted_process.py @@ -116,17 +116,17 @@ class ScriptedProcess(metaclass=ABCMeta): """ Get the list of loaded images for the scripted process. ``` - class ScriptedProcessImage: - def __init__(file_spec, uuid, load_address): - self.file_spec = file_spec - self.uuid = uuid - self.load_address = load_address + scripted_image = { + uuid = "c6ea2b64-f77c-3d27-9528-74f507b9078b", + path = "/usr/lib/dyld" + load_addr = 0xbadc0ffee + } ``` Returns: - List[ScriptedProcessImage]: A list of `ScriptedProcessImage` - containing for each entry, the name of the library, a UUID, - an `lldb.SBFileSpec` and a load address. + List[scripted_image]: A list of `scripted_image` dictionaries + containing for each entry the library UUID or its file path + and its load address. None if the list is empty. """ return self.loaded_images -- 2.7.4