Skip to content

[lldb] Expose language plugin commands based based on language of current frame (#136766) #10755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: swift/release/6.2
Choose a base branch
from

Conversation

kastiglione
Copy link

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
(cherry picked from commit 7ed185a)

…rent frame (llvm#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
(cherry picked from commit 7ed185a)
@kastiglione kastiglione requested a review from a team as a code owner May 28, 2025 18:11
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

Tests using ObjC do not readily run on Linux.
(cherry-picked from commit 1d48e55)
The use of `-lobjc` resulted in this test failing to build on Linux. The
flag is not necessary, this removes the flag with the expectation it
will fix the test on Linux.
(cherry-picked from commit e653dc9)
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test macOS

1 similar comment
@kastiglione
Copy link
Author

@swift-ci test macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant