Skip to content

Commit

Permalink
Merge pull request #4 from tweedegolf/probe
Browse files Browse the repository at this point in the history
Probe-rs support
  • Loading branch information
diondokter authored Jun 7, 2022
2 parents 29e9423 + d32f24f commit 3cd5f9c
Show file tree
Hide file tree
Showing 18 changed files with 959 additions and 312 deletions.
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,31 @@
"preLaunchTask": "rust: cargo build",
"console": "integratedTerminal",
}
{
"name": "(Windows) Launch with probe",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/stackdump-cli.exe",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"sourceFileMap": {
"/rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8": "${env:USERPROFILE}/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust"
},
"symbolSearchPath": "https://msdl.microsoft.com/download/symbols",
"environment": [
{
"name": "RUST_BACKTRACE",
"value": "1"
}
],
"args": [
"probe",
"./examples/data/nrf52840",
"-c",
"nrf52840"
],
"preLaunchTask": "rust: cargo build",
"console": "integratedTerminal",
}
]
}
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@
### Cli

- Added colorized output
- Added the ability to capture and trace from a running device using probe-rs

### Capture-probe

- Created an adaptor for letting a probe-rs core be used as MemoryRegion
- Added functions to capture the registers via probe-rs

### Trace

- Big refactor to make the type decoding and value reading be structured instead of it all being strings
- *Breaking*: Big refactor to make the type decoding and value reading be structured instead of it all being strings
- Added reading capability for tagged unions (fancy Rust enums)
- Added colorized output
- Made it so that transparent types can be added to lessen the clutter in the trace
- Object member pointers (objects with the `DW_AT_containing_type` attribute) are now detected an not displayed by default. This hides all of the vtables.
- Subroutines now display a `_` instead of an `Unknown` error

### Core

- *Breaking*: Simplified the MemoryRegion trait and made it fallible
- *Breaking*: Simplified the RegisterData trait
- *Breaking*: DeviceMemory now takes a `'memory` lifetime so that not all data has to be owned

## Capture 0.2.0 (03-05-22)

- Changed the function signature of the capture function. It now takes references to existing register data collections instead of returning new ones to improve ergonomics.
Expand Down
Loading

0 comments on commit 3cd5f9c

Please sign in to comment.