From a46be27bceebe9100841f2fa40251a2e02bbb3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Sun, 29 Dec 2019 18:24:23 +0100 Subject: [PATCH 1/2] Use gdb-multiarch instead of gdb-arm-none-eabi https://askubuntu.com/questions/1031103/how-to-install-gdb-arm-none-eabi-on-ubuntu-18-04#comment1682182_1032469 --- src/setup/LINUX.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup/LINUX.md b/src/setup/LINUX.md index 96769ca..7ce0739 100644 --- a/src/setup/LINUX.md +++ b/src/setup/LINUX.md @@ -9,7 +9,7 @@ Here are the installation commands for a few Linux distributions. ``` shell $ sudo apt-get install \ gcc-arm-none-eabi \ - gdb-arm-none-eabi \ + gdb-multiarch \ minicom \ openocd ``` From 84783bca5e8613948afa068cf8cdd360d9ff3244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Mon, 30 Dec 2019 12:23:20 +0100 Subject: [PATCH 2/2] gdb-multiarch --- src/getting-started/02.00.FLASH.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/getting-started/02.00.FLASH.md b/src/getting-started/02.00.FLASH.md index d07fd90..a87d91e 100644 --- a/src/getting-started/02.00.FLASH.md +++ b/src/getting-started/02.00.FLASH.md @@ -71,6 +71,7 @@ available. I mentioned that OpenOCD provides a GDB server so let's connect to that right now: ``` console +# On Ubuntu use `gdb-mutliarch -q target/thumbv6m-none-eabi/debug/rustled` $ arm-none-eabi-gdb -q target/thumbv6m-none-eabi/debug/rustled Reading symbols from target/thumbv6m-none-eabi/debug/rustled...done. (gdb) @@ -162,4 +163,4 @@ break rustled::main continue ``` -Now we can learn how to debug code on the micro:bit. \ No newline at end of file +Now we can learn how to debug code on the micro:bit.