3

我有一个程序出现段错误。我需要远程调试。为此,我正在做以下事情:

在目标板上:

#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,但仍然没有运气。

任何帮助将不胜感激。

问候,

尤维

4

1 回答 1

3

你需要设置sysroot. 如果您在本地有可用的库,您可以说:

set sysroot host-pathname
于 2013-05-23T10:42:24.300 回答