diff --git a/ch03-04-debugging-programs.html b/ch03-04-debugging-programs.html index 308cfa3..c7effcf 100644 --- a/ch03-04-debugging-programs.html +++ b/ch03-04-debugging-programs.html @@ -187,8 +187,9 @@
You probably want to set debug = true
inside Cargo.toml
. This will add debug symbols to the resulting ELF binaries which greatly enhance the debugging experience. Otherwise the debugger will have to guess where
To enable the debugger, build the kernel with the gdb-stub
feature. Your device must additionally have the 3rd serial port enabled.
The gdb-stub
feature flag is not yet exposed, so you will need to build the kernel with something along the lines of cargo build --release --target riscv32imac-unknown-xous-elf --package xous-kernel --features renode --features gdb-stub
. Once #444 is closed, you will be able to enable gdb-stub
via a normal xtask
flag.
To enable the debugger, pass --gdb-stub
to xtask
. For example:
cargo xtask app-image-xip --gdb-stub mtxchat --feature efuse --feature tls
+
Then, flash the resulting image to the target device as normal.
If you're using Renode, then you can connect gdb to localhost:3456
:
You probably want to set debug = true
inside Cargo.toml
. This will add debug symbols to the resulting ELF binaries which greatly enhance the debugging experience. Otherwise the debugger will have to guess where
To enable the debugger, build the kernel with the gdb-stub
feature. Your device must additionally have the 3rd serial port enabled.
The gdb-stub
feature flag is not yet exposed, so you will need to build the kernel with something along the lines of cargo build --release --target riscv32imac-unknown-xous-elf --package xous-kernel --features renode --features gdb-stub
. Once #444 is closed, you will be able to enable gdb-stub
via a normal xtask
flag.
To enable the debugger, pass --gdb-stub
to xtask
. For example:
cargo xtask app-image-xip --gdb-stub mtxchat --feature efuse --feature tls
+
Then, flash the resulting image to the target device as normal.
If you're using Renode, then you can connect gdb to localhost:3456
: