Failing to run GDB on MacOS
Hi, when per this step in the book I'm trying to run arm-none-eabi-gdb -q -ex "target remote :3333" target/thumbv7em-none-eabihf/debug/led-roulette, I'm getting this output:
Reading symbols from target/thumbv7em-none-eabihf/debug/led-roulette...
Remote debugging using :3333
core::fmt::Formatter::new () at library/core/src/fmt/mod.rs:237
237 library/core/src/fmt/mod.rs: No such file or directory.
(gdb)
And it's not the same error message every time, here's a different run:
Reading symbols from target/thumbv7em-none-eabihf/debug/led-roulette...
Remote debugging using :3333
0x08000536 in core::panic::PanicInfo::internal_constructor () at library/core/src/panic.rs:86
86 library/core/src/panic.rs: No such file or directory.
(gdb)
I'm on MacOS 10.15.7. I'd previously run this command successfully when starting to go through the Discovery book but now coming back to it I'm getting this error. So I tried deleting and re-cloning the discovery repo in case it was some kind of caching issue. Also tried running against a different version of the Rust toolchain (beta). So I don't understand enough of what GDB is doing to know what the error is indicating?
Update: it looks like this wasn't a "fatal" error, I'm able to successfully flash from this running GDB instance
@peterstuart said he also saw this error message running on an ARM MacBook and latest version of macOS
Also after having flashed now I'm no longer seeing that error on subsequent launches of GDB (I guess specifically when running target remote :3333) so maybe is related to whatever was previously flashed onto the device?
So feel free to close if it doesn't seem like a meaningful error