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

default parameters #10

Open
woodard opened this issue Oct 7, 2021 · 1 comment
Open

default parameters #10

woodard opened this issue Oct 7, 2021 · 1 comment

Comments

@woodard
Copy link
Collaborator

woodard commented Oct 7, 2021

When a function takes a default parameter if the value of that default parameter changes in a header file. The old default is hard coded at the call site of the function and there does not appear to be a way to detect that this particular call site took a different default than was expected by the current version of the library.

@woodard
Copy link
Collaborator Author

woodard commented Oct 7, 2021

I was thinking that a call site may have a parameter for a function decorated with DW_AT_artificial in the DW_TAG_call_site_parameter DIE but it doesn't look like gcc currently emits this. However, it does appear that the language in DWARF5 section 2.11 doesn't preclude that if interpreted expansively enough.

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

1 participant