我有一个程序正在获取段错误。 我需要远程debugging。 为此,我正在做以下工作:
在目标板上:
#gdbserver :2345 program
在主机x86机器上:
$ arm-linux-gdb -q program (gdb) target remote 192.168.150.104:2345
但在运行上面的命令后,我得到了错误的数量:
Error while mapping shared library sections: /usr/local/lib/QtTouchScreen/lib/libQtTest.so.4: No such file or directory. Error while mapping shared library sections: /usr/local/lib/QtTouchScreen/lib/libQtXml.so.4: No such file or directory. Error while mapping shared library sections: /usr/local/lib/QtTouchScreen/lib/libQtGui.so.4: No such file or directory. Error while mapping shared library sections: /usr/local/lib/QtTouchScreen/lib/libQtNetwork.so.4: No such file or directory. Error while mapping shared library sections: /usr/local/lib/QtTouchScreen/lib/libQtCore.so.4: No such file or directory. Error while mapping shared library sections: /lib/libpthread.so.0: No such file or directory. Error while mapping shared library sections: /usr/lib/libstdc++.so.6: No such file or directory. Error while mapping shared library sections: /lib/libm.so.0: No such file or directory. Error while mapping shared library sections: /lib/libgcc_s.so.1: No such file or directory.
我尝试使用export LD_LIBRARY_PATH
在主机上设置这些库的path,但仍然没有运气。
任何帮助将不胜感激。
问候,
Yuvi
你需要设置sysroot
。 如果你有本地库,你可以说:
set sysroot host-pathname