Skip to content
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

service/dap: use address, not index to differentiate compound map keys #2291

Merged
merged 2 commits into from
Jan 8, 2021

Conversation

polinasok
Copy link
Collaborator

When keys are compound, the value is a type, which is not unique. The earlier version of this code used child index to differentiate, but that seems misleading given that maps are not indexed or ordered. Using the address as a differentiator will be closer to dlv's expression syntax for loading variables.

@derekparker derekparker merged commit a224f17 into go-delve:master Jan 8, 2021
abner-chenc pushed a commit to loongson/delve that referenced this pull request Mar 1, 2024
go-delve#2291)

* Use address, not index to differentiate compound map keys

* Clean up calls to expectVarRegex

Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
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.

3 participants