Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1072: Debugger: Add SVD Peripherals and prep for multi-core r=Yatekii a=noppej This PR is part of a trio of PR's that depend on each other: - [Debugger in probe-rs](#1072) - Part I of preparing for multi-core support. This will require future PR's to complete. - Restructured source files - large files broken up into smaller units. - Support for loading CMSIS-SVD files and making peripheral values available to the VSCode extension. - [VSCode extension](probe-rs/vscode#31) - A draft version of the extension [probe-rs-debugger-0.4.0.vsix](https://github.com/probe-rs/vscode/releases/tag/v0.4.0) is available to facilitate testing of these PR's. - Changes to `launch.json` configuration to support SVD Peripheral files and core specific configuration. - Updated various development dependencies. - Updated the Debug Adapter Protocol to version 1.55.1. - [Documentation on probe.rs](probe-rs/webpage#47) - Document changes to VSCode `launch.json`. - GIF to demonstrate how to navigate and monitor SVD Peripheral register values. Note to reviewers: This PR started as simply adding SVD support. Then I realized it doesn't make sense to add all that functionality while disregarding that this is a core-specific capability. As a result I started adding essential logic to configure and handle core-specific settings. Then I realized that the source files were growing out of proportion, so I split them into smaller units. The result is this rather larger PR - I hope the new capability and cleaner source structure makes up for the pain of reviewing such a large PR. Co-authored-by: JackN <noppej@hotmail.com>
- Loading branch information
Showing
30 changed files
with
1,929 additions
and
1,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
561 changes: 369 additions & 192 deletions
561
debugger/src/debug_adapter.rs → debugger/src/debug_adapter/dap_adapter.rs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// Implements the logic for each of the MS DAP types (events, requests, etc.) | ||
pub(crate) mod dap_adapter; | ||
/// The MS DAP api, and extensions, for communicating with the MS DAP client. | ||
pub(crate) mod dap_types; | ||
/// Communication interfaces to connect the DAP client and probe-rs-debugger. | ||
pub(crate) mod protocol; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...t__receive_request_with_invalid_json.snap → ...t__receive_request_with_invalid_json.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ve_request_with_wrong_content_length.snap → ...ve_request_with_wrong_content_length.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...pshots/probe_rs_debugger__debug_adapter__protocol__test__receive_request_would_block.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: debugger/src/debug_adapter/protocol.rs | ||
expression: output_str | ||
--- | ||
|
3 changes: 1 addition & 2 deletions
3
...adapter__test__receive_valid_request.snap → ...rotocol__test__receive_valid_request.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.