Description
#604 introduced the new node device-settings: under debugger:. It's functionality relates to the dbgconf: node under the same parent.
See https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/pyOCD-Debugger.md#device-settings
Brief summary of rules
*.csolution.yml + *.cbuild-run.yml : Both device-settings: and dbgconf: are allowed in both files. If both present, then dbgconf: is ignored.
*.csolution.yml -> *.cbuild-run.yml conversion:
- If
*.csolution.yml contains device-settings:, then it's passed to *.csolution.yml as is. An also existing dbgconf: node is ignored and discarded.
- If
*.csolution.yml contains dbgconf: only, then
- the content of the
*.dbgconf file is parsed.
- variable assignments are converted into key-value child nodes under
device-settings in *.cbuild-run.yml.
- it's OK to discard the (C-like) comments that can live in the file for Configuration Wizard annotations.
- no
dbgconf: node is written to *.cbuild-run.yml.
Potential caveats:
- Variable assignments can be numeric values and expressions. But the latter is probably the rarer case. TBC
- Variable assignments can be multi-line, but lines should be terminated by a semi-colon. I would not expect variable assignments to be interleaved with comments.
Note: Consuming debuggers already support dbgconf: in *.cbuild-run.yml for legacy reasons. Hence, not a blocker.
Is this request a Security Requirement?
Description
#604 introduced the new node
device-settings:underdebugger:. It's functionality relates to thedbgconf:node under the same parent.See https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/pyOCD-Debugger.md#device-settings
Brief summary of rules
*.csolution.yml+*.cbuild-run.yml: Bothdevice-settings:anddbgconf:are allowed in both files. If both present, thendbgconf:is ignored.*.csolution.yml->*.cbuild-run.ymlconversion:*.csolution.ymlcontainsdevice-settings:, then it's passed to*.csolution.ymlas is. An also existingdbgconf:node is ignored and discarded.*.csolution.ymlcontainsdbgconf:only, then*.dbgconffile is parsed.device-settingsin*.cbuild-run.yml.dbgconf:node is written to*.cbuild-run.yml.Potential caveats:
Note: Consuming debuggers already support
dbgconf:in*.cbuild-run.ymlfor legacy reasons. Hence, not a blocker.Is this request a Security Requirement?