Author: Med Ismail Bennani Date: 2022-11-14T23:25:52-08:00 New Revision: 15cd237cc2afc07074c69ff4bd6c63dd3d6e0ebd
URL: https://github.com/llvm/llvm-project/commit/15cd237cc2afc07074c69ff4bd6c63dd3d6e0ebd DIFF: https://github.com/llvm/llvm-project/commit/15cd237cc2afc07074c69ff4bd6c63dd3d6e0ebd.diff LOG: [lldb] Re-phase comments in `ScriptedProcess.get_loaded_images` method (NFC) Signed-off-by: Med Ismail Bennani <medismail.benn...@gmail.com> Added: Modified: lldb/examples/python/scripted_process/scripted_process.py Removed: ################################################################################ diff --git a/lldb/examples/python/scripted_process/scripted_process.py b/lldb/examples/python/scripted_process/scripted_process.py index 29dbd04fd4d56..86ec1db893a27 100644 --- a/lldb/examples/python/scripted_process/scripted_process.py +++ b/lldb/examples/python/scripted_process/scripted_process.py @@ -116,17 +116,17 @@ def get_loaded_images(self): """ 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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits