Skip to content

Commit

Permalink
[lldb] Re-phase comments in ScriptedThread.get_stackframes method (…
Browse files Browse the repository at this point in the history
…NFC)

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
  • Loading branch information
medismailben committed Nov 14, 2022
1 parent 1239d37 commit e85c723
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions lldb/examples/python/scripted_process/scripted_process.py
Expand Up @@ -306,19 +306,16 @@ def get_stackframes(self):
""" 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
Expand Down

0 comments on commit e85c723

Please sign in to comment.