From 2f50e8be847fc0025470151cfdde765409a5a91e Mon Sep 17 00:00:00 2001 From: James Abley Date: Tue, 10 Oct 2023 10:32:31 +0100 Subject: [PATCH] Update debugging.md gdb command (#1332) The provided example did not work for me. I got: `zsh: command not found: gdb-multiarch` The other version worked instead. This might be a MacOS thing, or an Apple Silicon thing. The other command is the same as used in https://docs.rust-embedded.org/book/intro/install/macos.html so maybe the MacOS installation guidance also needs updating? --- src/bare-metal/microcontrollers/debugging.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bare-metal/microcontrollers/debugging.md b/src/bare-metal/microcontrollers/debugging.md index c5d6f22e..5aa68602 100644 --- a/src/bare-metal/microcontrollers/debugging.md +++ b/src/bare-metal/microcontrollers/debugging.md @@ -18,10 +18,15 @@ cargo embed --bin board_support debug In another terminal in the same directory: +On gLinux or Debian: ```sh gdb-multiarch target/thumbv7em-none-eabihf/debug/board_support --eval-command="target remote :1337" ``` +On MacOS: +```sh +arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/board_support --eval-command="target remote :1337" +```
In GDB, try running: