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

clarify evaluation result expectation #50

Open
markus-metzger opened this issue Dec 14, 2022 · 1 comment
Open

clarify evaluation result expectation #50

markus-metzger opened this issue Dec 14, 2022 · 1 comment

Comments

@markus-metzger
Copy link

https://github.com/ccoutant/dwarf-locations/blame/b1d75746e53e1bf090e1c112a7a157f59bf1c550/002-clarifications-eval.txt#L38 says

When a DWARF expression is evaluated, it may be
specified whether a value or location description is required as the
result kind.

I think it should say it must be specified, since we can otherwise not distinguish a value from a memory location description.

@t-tye
Copy link
Contributor

t-tye commented Dec 15, 2022

There are a couple of places in DWARF 5 where the result can be either a value or a location description, with special rules that happen depending on what the evaluation ends up returning. It would be nice to eliminate these cases, but this proposal did not do that to preserve backwards compatibility

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

No branches or pull requests

2 participants