gpt4 book ai didi

rust - 庆典 : gdb: No such file or directory

转载 作者:行者123 更新时间:2023-11-29 08:34:22 29 4
gpt4 key购买 nike

我正在关注 Discover Rust 的官方文档.我正在尝试将程序刷写到 STM32F3 中。 Flash chapter要求执行这个命令

<gdb> -q target/thumbv7em-none-eabihf/debug/led-roulette

但它返回

bash: gdb: No such file or directory

按照提示,我的位置是

naufil@Naufil:~/Desktop/discovery/src/05-led-roulette

debug 文件夹中确实有led-roulette 文件。如果通过执行安装了 gdb,我还创建了用户

$ which -a gdb
/usr/bin/gdb

最佳答案

从您链接的文档中该命令的正下方:

NOTE: <gdb> represents a GDB program capable of debugging ARM binaries. This could be arm-none-eabi-gdb, gdb-multiarch or gdb depending on your system -- you may have to try all three.

关于rust - 庆典 : gdb: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56673725/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com