Skip to content

[lldb] Display breakpoint locations using display name #8726

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

Conversation

kastiglione
Copy link

Adds a show_function_display_name parameter to SymbolContext::DumpStopContext. This parameter defaults to false, but BreakpointLocation::GetDescription sets it to true.

Give language plugins the opportunity to provide a language specific
display name.

This will be used in a follow up commit. The purpose of this change is
to ultimately display breakpoint locations with a more human friendly
demangling of Swift symbols.

(cherry picked from commit b52160d)
Adds a `show_function_display_name` parameter to
`SymbolContext::DumpStopContext`. This
parameter defaults to false, but `BreakpointLocation::GetDescription`
sets it to true.

This is NFC in mainline lldb, and will be used to modify how Swift
breakpoint locations are printed.

(cherry picked from commit 7ec8a33)
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

@@ -25,7 +25,7 @@ def test(self):
stream = lldb.SBStream()
bkpt.GetLocationAtIndex(0).GetDescription(stream, 1)
desc = stream.GetData()
self.assertIn("C.f<T>(T, U) -> ()", desc)
self.assertIn("C.f<T>(_:_:)", desc)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrian-prantl the switch from GetName to GetDisplayName results in this change.

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione requested a review from adrian-prantl May 9, 2024 17:25
@adrian-prantl adrian-prantl merged commit 31c294e into swift/release/6.0 May 9, 2024
3 checks passed
@kastiglione kastiglione deleted the dl/lldb-Display-breakpoint-locations-using-display-name branch May 9, 2024 20:38
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.

2 participants