Skip to content

unambiguously set output radix #214

@jonahgraham

Description

@jonahgraham

The conversations in eclipse-cdt-cloud/cdt-gdb-adapter#523 (comment) today made me realize there is a small (potential) bug with how output radix is set. Perhaps this has been covered/discussed enough, but I wanted to raise it in a new issue instead of losing the information

In:

expression: `> set output-radix ${radix === 'hexadecimal' ? 16 : 10}`,

The GDB docs recommend always setting radix unambiguously (or using input, but we don't know what that is). The use of 10 and 16 are both ambigious. link

For example, changing the code to:

expression: `> set output-radix ${radix === 'hexadecimal' ? 16. : 10.}`, 

or

expression: `> set output-radix ${radix === 'hexadecimal' ? 0x10 : 0xa}`, 

would do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions