In lldb, I wanted to create an alias for call printCallStack()
. I got an error that did not explain much:
(lldb) command alias pcs call printCallStack()
error: Unable to create requested alias.
How to do it correctly?
Seems like that did not work because call
is itself an alias.
If I use expr
instead, it works:
(lldb) command alias pcs expr printCallStack()
# or, add '--' for extra coolness :)
(lldb) command alias pcs expr -- printCallStack()