Use the current frame's language to lookup commands provided by language plugins.
This means commands like `language {objc,cplusplus} <command>` can be used directly, without using the `language <lang>` prefix.
For example, when stopped on a C++ frame, `demangle _Z1fv` will run `language cplusplus demangle _Z1fv`.
rdar://149882520
7 lines
150 B
Python
7 lines
150 B
Python
import lldb
|
|
|
|
|
|
@lldb.command("tagged-pointer-collision")
|
|
def noop(dbg, cmdstr, ctx, result, _):
|
|
print("ran tagged-pointer-collision", file=result)
|