Skip to content

 🍒 [lldb][Breakpoint] Allow whitespace in breakpoint address expression #9964

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

Merged

Conversation

Michael137
Copy link

Setting a breakpoint on <symbol> + <offset> used to work until 2c76e88e9eb284d17cf409851fb01f1d583bb22a, where this regex was reworked. Now we only accept <symbol>+ <offset> or <symbol>+<offset>.

This patch fixes the regression by adding yet another [[:space:]]* component to the regex.

One could probably simplify the regex (or even replace the regex by just calling the relevent consumeXXX APIs on llvm::StringRef). Though I left that for the future.

rdar://130780342

Setting a breakpoint on `<symbol> + <offset>` used to work until `2c76e88e9eb284d17cf409851fb01f1d583bb22a`, where this regex was reworked. Now we only accept `<symbol>+ <offset>` or `<symbol>+<offset>`.

This patch fixes the regression by adding yet another `[[:space:]]*` component to the regex.

One could probably simplify the regex (or even replace the regex by just calling the relevent `consumeXXX` APIs on `llvm::StringRef`). Though I left that for the future.

rdar://130780342
@Michael137 Michael137 requested a review from a team as a code owner February 6, 2025 18:25
@Michael137
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 36d7ebc into swift/release/6.1 Feb 7, 2025
3 checks passed
@adrian-prantl adrian-prantl deleted the lldb/addr-breakpoint-whitespace-to-6.1 branch February 7, 2025 17:59
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