aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-08-03 19:16:24 -0400
committerBrian Cully <bjc@kublai.com>2022-08-03 19:16:24 -0400
commit01ad7948420a466b850d84a4d73b3698c17c0b15 (patch)
tree0319b4c337708b0316709f822bd0c418f1c91ea8
parentd04d8f629ccd1d80b1dae4f3588b397dcebd1bd4 (diff)
downloadluchie-01ad7948420a466b850d84a4d73b3698c17c0b15.tar.gz
luchie-01ad7948420a466b850d84a4d73b3698c17c0b15.zip
Make ‘cargo run’ start gdb.
-rw-r--r--.cargo/config.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index f383523..2609695 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -6,5 +6,6 @@ xtask = "run --package xtask --"
target = "riscv32imac-unknown-none-elf"
[target.riscv32imac-unknown-none-elf]
+runner = "riscv32-elf-gdb -x gdbinit"
rustflags = ["-C", "link-arg=-Tdevice.lds", "-C", "link-arg=-nostdlib"]
linker = "riscv32-elf-ld"