【发布时间】:2018-05-21 05:52:19
【问题描述】:
我正在尝试使用 gdbserver 进行远程调试。
我通过 USB 端口将我的目标设备连接到我的电脑,使用此命令打开终端控制我的设备:
minicom -D "/dev/ttyUSB0".
现在在我的目标设备上,我需要使用这个 cmd 运行 gdbserver:
gdbserver /dev/my_USB_serial_port my_Program.
但是,我找不到ttyUSB0,我得到的只是一堆ttyx(其中x是一个数字)如下:
~ # /dev/tty
tty tty14 tty20 tty27 tty33 tty4 tty46 tty52 tty59 tty8
tty0 tty15 tty21 tty28 tty34 tty40 tty47 tty53 tty6 tty9
tty1 tty16 tty22 tty29 tty35 tty41 tty48 tty54 tty60 ttyS0
tty10 tty17 tty23 tty3 tty36 tty42 tty49 tty55 tty61 ttyS1
tty11 tty18 tty24 tty30 tty37 tty43 tty5 tty56 tty62
tty12 tty19 tty25 tty31 tty38 tty44 tty50 tty57 tty63
tty13 tty2 tty26 tty32 tty39 tty45 tty51 tty58 tty7
如何找到我的 USB 端口的正确串行端口?
更新 1:正如回答中提到的俄罗斯雇员,我对 USB 端口感到困惑,但我仍然无法使用他的命令连接到 gdbserver。
【问题讨论】:
标签: serial-port gdb remote-debugging gdbserver