Skip to content

Handle var changed state following -var-assign#127

Merged
sunshaoce merged 1 commit into
lldb-tools:mainfrom
jld01:var-obj-changed
Oct 31, 2025
Merged

Handle var changed state following -var-assign#127
sunshaoce merged 1 commit into
lldb-tools:mainfrom
jld01:var-obj-changed

Conversation

@jld01

@jld01 jld01 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

We cannot rely on the referenced SBValue object to preserve the changed state of a var object between a -var-assign command and a subsequent -var-update command. So we hold this state in the var object itself.

Resolves #126

@jld01 jld01 marked this pull request as ready for review October 30, 2025 20:03

@sunshaoce sunshaoce left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, just one small issue。

Comment thread src/MICmnLLDBDebugSessionInfoVarObj.cpp Outdated
@sunshaoce sunshaoce merged commit 7a907a6 into lldb-tools:main Oct 31, 2025
3 checks passed
@jld01 jld01 deleted the var-obj-changed branch November 2, 2025 22:00
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.

-var-update changelist content not correct

2 participants