Remote debugging using 192.168.1.105:23946
warning: while parsing target description (at line 10): Target description specified unknown architecture "arm"
warning: Could not load XML target description; ignoring
Reading /data/local/tmp/gdbserver/hello from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead.
Reading /data/local/tmp/gdbserver/hello from remote target...
Reading symbols from target:/data/local/tmp/gdbserver/hello...
(No debugging symbols found in target:/data/local/tmp/gdbserver/hello)
显示本地gdb识别不了arm架构,原因应该是gdbserver和本地的架构不同,这里宿主机gdb用gdb-multiarch
来设置各种平台架构,这里它支持184种架构
apt install gdb-multiarch
安装后gdb启动
gdb-multiarch