Skip to content

[Feature Request]: Expand .dbgconf content to key-value pairs under device-settings: #636

Description

@jreineckearm

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?

  • Yes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

No fields configured for Feature.

Projects

Status
Backlog
Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions