-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support different memory address representations for variables #107
Comments
Furthermore, the current address matching returns the first match but does not require the whole string to be an address. I'd open that up for discussion and we should comment the code accordingly to the decision. |
@colin-grant-work @jreineckearm An initial version of this that also supports decimal addresses was added as part of #96. However, I think we still need to discuss whether we also want to support other data formats (even though the DAP does not mention them explicitly) and whether we expect an address to be returned directly as opposed to extracting the address from the returned textual value as we do now. |
I believe we should be good with decimal and hexadecimal for the time being in terms of number formats. What might be interesting to explore is if we gain anything from resolving textual memory references as they are (with |
I think that if we're ok supporting just bases 10 and 16, the work added in #96 should suffice: it saves the |
(based on #96 (comment))
When querying the memory address for a variable, we currently only support hexadecimal addresses in our default implementation of the C Tracker. However, the ReadMemoryResponse and DisassembledInstruction also support the decimal format as an argument. We should at least think about supporting those two formats and may consider supporting other formats such as octal or binary as well. In those cases, we need to consider whether we do want to convert them to hex or decimal for further processing as they are the only formats mentioned explicitly by the DAP.
The text was updated successfully, but these errors were encountered: