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

Add a way to show variables in hex #193

Open
hrw opened this issue Dec 8, 2023 · 4 comments
Open

Add a way to show variables in hex #193

hrw opened this issue Dec 8, 2023 · 4 comments
Assignees

Comments

@hrw
Copy link
Contributor

hrw commented Dec 8, 2023

Logger/Tracker are nice but "6871947673600" is less readable than 0x64000000000 value.

@hrw
Copy link
Contributor Author

hrw commented Dec 8, 2023

Any way to switch dec/hex in variable views. Arguments, Locals etc.

@epasveer epasveer self-assigned this Dec 8, 2023
@epasveer
Copy link
Owner

epasveer commented Dec 8, 2023

Yes, there might be. gdb has a global setting for all variables views. I think I can add a toggle somewhere/somehow.

Let me think on it.

@epasveer
Copy link
Owner

I saw a feature of gdb to "display" a variable using a specified type. Seer's "tracker" is similar to gdb's "display". I think it would be good to have "tracker" to have the same behavior. This likely means using the "mi" 'varobj' api to talk to gdb.

@mark4th
Copy link

mark4th commented Jan 4, 2025

it should be able to display this variable in hex, that one in octa, this one in binary and that one over there in decimal all at the same time. not a global settiong that displayes all variables in the same base.

Memory and registers should always be displayed in hex, imho displaying variables should always default to hex unless the user overrides it. After 40 years as a software engineer it has become increasingly apparant to me that the vast majority of values make more sense logically when displayed in hex. VERY VERY few exceptions to this that I have seen.

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

3 participants