diff --git a/Cargo.lock b/Cargo.lock index 1ac0b41c0..449aaa71e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1616,6 +1616,30 @@ dependencies = [ "xous-ipc 0.9.37 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "gdbstub" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec68d54b28ba0a89b2d8c62ca1aacebda9e200c5da536b417c40040f2b32299" +dependencies = [ + "bitflags", + "cfg-if", + "log", + "managed", + "num-traits", + "paste", +] + +[[package]] +name = "gdbstub_arch" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eecb536c55c43593a00dde9074dbbdb0e81ce5f20dbca921400f8779c21dea9c" +dependencies = [ + "gdbstub", + "num-traits", +] + [[package]] name = "generic-array" version = "0.14.5" @@ -2670,6 +2694,12 @@ dependencies = [ "random-pick", ] +[[package]] +name = "paste" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" + [[package]] name = "pddb" version = "0.1.0" @@ -5161,6 +5191,8 @@ dependencies = [ "bitflags", "critical-section 1.1.1", "crossbeam-channel", + "gdbstub", + "gdbstub_arch", "hex 0.4.3", "lazy_static", "rand 0.7.3", diff --git a/RELEASE-v0.9.md b/RELEASE-v0.9.md index 1f01dd2ef..9e45b91a2 100644 --- a/RELEASE-v0.9.md +++ b/RELEASE-v0.9.md @@ -368,6 +368,8 @@ perform the Xous firmware upgrade. This requires running manual update commands, - All-0 app_id in U2F no longer prompts for a save record - PDDB shellchat writeall command via @pakl - Add Force Update option for the EC. This required migrating the time server runtime into the DNS process space, due to exhaustion of connection IDs in the status process space. +- @xobs has added the feature `--gdb-stub` to the build. When selected, the kernel is built with GDB support over serial port. This works well in Renode. To try it in hardware, one must first run `console app` inside `shellchat` to activate the GDB UART (otherwise the sole serial port is connected to the console log). + ## Roadmap - Lots of testing and bug fixes - Fixing performance issues in `pddb`