-
-
Notifications
You must be signed in to change notification settings - Fork 398
Debugger now allows generic selection of sub-configurations #2435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2435 +/- ##
==========================================
+ Coverage 67.28% 67.38% +0.10%
==========================================
Files 210 210
Lines 20576 20574 -2
==========================================
+ Hits 13844 13864 +20
+ Misses 5593 5575 -18
+ Partials 1139 1135 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -169,12 +175,10 @@ func getDebugProperties(req *rpc.GetDebugConfigRequest, pme *packagemanager.Expl | |||
} | |||
} | |||
|
|||
toolchainPrefix := debugProperties.Get("toolchain.prefix") | |||
// HOTFIX: for samd (and maybe some other platforms). We should keep this for a reasonable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also for other cores like the esp32 one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'd change the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says:
for samd (and maybe some other platforms)
esp32 is some other platform :-)
…2435) * debug: extend hotfix for trailing dash '-' to all toolchains * Added additional_config selector for debug configuration * Added docs
Please check if the PR fulfills these requirements
See how to contribute
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)configuration.schema.json
updated if new parameters are added.What kind of change does this PR introduce?
It is now possible to use any sub-tree of the platform configuration to override the debugger configuration using the directive
debug.additional_config=CONF_PREFIX
.This change allows a more convenient rationalization and selection of the configs to apply. For example, we could factor common parts of a configuration in the
platform.txt
file:and choose to add the right configuration depending on the board in the boards.txt file:
Another possibility is to compose the configuration using another variable present in the board configuration, for example if in the platform.txt we add:
we may use the
build.mcu
value as a "selector" for the board-specific debug configuration that is added to the global debug configuration:What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change, and is titled accordingly?
Other information