summaryrefslogtreecommitdiff
path: root/lldb/examples
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2022-11-14 00:17:22 -0800
committerMed Ismail Bennani <medismail.bennani@gmail.com>2022-11-14 23:25:52 -0800
commit15cd237cc2afc07074c69ff4bd6c63dd3d6e0ebd (patch)
tree9c370972e9d6987c880574b6a9afe8ef4e0eee19 /lldb/examples
parent67df73030f667932ca8f05918a9908d1dd37a1a9 (diff)
downloadllvm-15cd237cc2afc07074c69ff4bd6c63dd3d6e0ebd.tar.gz
[lldb] Re-phase comments in `ScriptedProcess.get_loaded_images` method (NFC)
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/examples')
-rw-r--r--lldb/examples/python/scripted_process/scripted_process.py16
1 files 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 29dbd04fd4d5..86ec1db893a2 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