summaryrefslogtreecommitdiff
path: root/lldb/examples
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2022-11-13 22:19:14 -0800
committerMed Ismail Bennani <medismail.bennani@gmail.com>2022-11-13 22:19:14 -0800
commite85c7233b429004faed2472e300abe40c4ab7cf3 (patch)
treeaba80c8ae49bef3a72450d11a37984f098fe3bec /lldb/examples
parent1239d37bdbfbe79289a2fc578aad8360f84c315d (diff)
downloadllvm-e85c7233b429004faed2472e300abe40c4ab7cf3.tar.gz
[lldb] Re-phase comments in `ScriptedThread.get_stackframes` 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.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/lldb/examples/python/scripted_process/scripted_process.py b/lldb/examples/python/scripted_process/scripted_process.py
index 585cf0bae6a3..29dbd04fd4d5 100644
--- a/lldb/examples/python/scripted_process/scripted_process.py
+++ b/lldb/examples/python/scripted_process/scripted_process.py
@@ -306,19 +306,16 @@ class ScriptedThread(metaclass=ABCMeta):
""" Get the list of stack frames for the scripted thread.
```
- class ScriptedStackFrame:
- def __init__(idx, cfa, pc, symbol_ctx):
- self.idx = idx
- self.cfa = cfa
- self.pc = pc
- self.symbol_ctx = symbol_ctx
+ scripted_frame = {
+ idx = 0,
+ pc = 0xbadc0ffee
+ }
```
Returns:
- List[ScriptedFrame]: A list of `ScriptedStackFrame`
- containing for each entry, the frame index, the canonical
- frame address, the program counter value for that frame
- and a symbol context.
+ List[scripted_frame]: A list of `scripted_frame` dictionaries
+ containing at least for each entry, the frame index and
+ the program counter value for that frame.
The list can be empty.
"""
return self.frames