我正在尝试将 lldb 与 openocd/jtag 板一起使用,但我遇到了麻烦。我已经使用 openocd 和 gdb 在 L0 STMicroelectronics 板上进行开发,并且效果很好。现在我想和lldb一样。
我在 LLDB 主机端这样做
$ lldb bin/token.elf
(lldb) target create "bin/token.elf"
Current executable set to 'bin/token.elf' (arm).
(lldb) platform select remote-gdb-server
Platform: remote-gdb-server
Connected: no
(lldb) platform connect connect://localhost:5557
Platform: remote-gdb-server
Hostname: (null)
Connected: yes
(lldb) target list
Current targets:
* target #0: /home/cme/Projects/Tacos/ledger/trunk/se/build/st31_bolos/bin/token.elf ( arch=arm-unknown-unknown, platform=host )
在 openocd/GDB 服务器端,我正确地看到“信息:在 tcp/5557 上接受 'gdb' 连接”
但现在我没有找到如何继续:
(lldb) process launch
error: process launch failed: Child exec failed.
我也试过“进程继续”,但 lldb 抱怨没有进程
使用 gdb,该进程被认为已经在运行,我使用重置/继续命令,而不是“运行”命令。
有人知道如何将 lldb 与 openocd/jtag gdb-server 一起使用吗?
谢谢你的帮助
厘米。