Skip to content

[Discussion] Floating Point registers should be shown in natural format not hex #540

Description

@omarArm

Floating point registers available in the registers scope of the variables window are all shown in hex. This is of course due to the fact that in the method handleVariableRequestRegister the function call await mi.sendDataListRegisterValues(this.gdb, {fmt: 'x', frameRef,}); has the argument x, which causes all registers to be viewed in hex.

For showing values of floating point registers as floats, I had the idea of changing the fmt argument to N. However, that would cause core registers to be viewed in decimal, which is not an ideal solution either.

One of the problems, imo, is that GDB doesn't have a command in which users can request register readings for a specific register.

@asimgunes @cwalther @jonahgraham any thoughts would be much appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions