Files
clang-p2996/lldb/test/API/commands/command/language/commands.py
Dave Lee 7ed185a8f2 [lldb] Expose language plugin commands based based on language of current frame (#136766)
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
2025-05-28 11:04:57 -07:00

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)