Skip to content

Conversation

@kastiglione
Copy link

@kastiglione kastiglione commented Sep 3, 2025

The DIL implementation of GetValueForVariableExpressionPath succeeds when the "variable expression path" is an integer. This code expected the old behavior, where GetValueForVariableExpressionPath would fail for an integer value.

The fix is to try parsing the command arg as an address first (instead of as a fallback). If the command arg does not parse as an address, then it is tried as a variable expression path.

rdar://159531040

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

2 similar comments
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test macOS

@kastiglione kastiglione force-pushed the dl/lldb-Fix-handling-of-addresses-given-to-swift-task-commands branch from 84e516f to 4818f72 Compare September 4, 2025 14:44
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test macOS

2 similar comments
@kastiglione
Copy link
Author

@swift-ci test macOS

@kastiglione
Copy link
Author

@swift-ci test macOS

@kastiglione
Copy link
Author

@swift-ci test windows

@kastiglione
Copy link
Author

@swift-ci test macOS

@kastiglione
Copy link
Author

the test failures are existing failures unrelated to this fix.

@kastiglione kastiglione merged commit 88636f0 into stable/21.x Sep 5, 2025
1 of 3 checks passed
@kastiglione kastiglione deleted the dl/lldb-Fix-handling-of-addresses-given-to-swift-task-commands branch September 5, 2025 17:18
kastiglione added a commit that referenced this pull request Sep 9, 2025
The DIL implementation of `GetValueForVariableExpressionPath` succeeds when the "variable expression path" is an integer. This code expected the old behavior, where `GetValueForVariableExpressionPath` would fail for an integer value.

The fix is to try parsing the command arg as an address first (instead of as a fallback). If the command arg does not parse as an address, then it is tried as a variable expression path.

rdar://159531040
(cherry picked from commit 88636f0)

(cherry-picked from commit 329119d52e0004b1f73f71b01f819a05e06c4e7d)
kastiglione added a commit that referenced this pull request Sep 9, 2025
The DIL implementation of `GetValueForVariableExpressionPath` succeeds when the "variable expression path" is an integer. This code expected the old behavior, where `GetValueForVariableExpressionPath` would fail for an integer value.

The fix is to try parsing the command arg as an address first (instead of as a fallback). If the command arg does not parse as an address, then it is tried as a variable expression path.

rdar://159531040
(cherry picked from commit 88636f0)

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