MCPcopy Create free account
hub / github.com/Marus/cortex-debug / formatRadixGdbCommand

Method formatRadixGdbCommand

src/gdb.ts:1192–1202  ·  view source on GitHub ↗
(forced: string | null = null)

Source from the content-addressed store, hash-verified

1190 }
1191
1192 private formatRadixGdbCommand(forced: string | null = null): string[] {
1193 // radix setting affects future interpretations of values, so format it unambiguously with hex values
1194 const radix = forced || (this.args.variableUseNaturalFormat ? '0xa' : '0x10');
1195 // If we set just the output radix, it will affect setting values. Always leave input radix in decimal
1196 // Also, don't understand why setting the output-radix modifies the input radix as well
1197 const cmds = [
1198 `interpreter-exec console "set output-radix ${radix}"`,
1199 'interpreter-exec console "set input-radix 0xa"'
1200 ];
1201 return cmds;
1202 }
1203
1204 protected disassembleRequest(
1205 response: DebugProtocol.DisassembleResponse,

Callers 3

startGdbMethod · 0.95
setGdbOutputRadixMethod · 0.95
readRegistersRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected