Skip to content

Commit

Permalink
[lldb] Allow flexible importing of in_call_stack
Browse files Browse the repository at this point in the history
Allow `in_call_stack` to be imported in either of the following ways:

```
command script import path/to/in_call_stack.py
command script import lldb.utils.in_call_stack
```

rdar://102249295

Differential Revision: https://reviews.llvm.org/D137860
  • Loading branch information
kastiglione committed Nov 11, 2022
1 parent 0f9ef8b commit 307f395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/examples/python/in_call_stack.py
Expand Up @@ -3,7 +3,7 @@

def __lldb_init_module(debugger, internal_dict):
debugger.HandleCommand(
'command alias in_call_stack breakpoint command add --python-function in_call_stack.in_call_stack -k name -v %1'
f'command alias in_call_stack breakpoint command add --python-function {__name__}.in_call_stack -k name -v %1'
)


Expand Down

0 comments on commit 307f395

Please sign in to comment.