【问题标题】:Can't find glibc source code during remote debugging arm with eclipse在使用 eclipse 进行远程调试 arm 期间找不到 glibc 源代码
【发布时间】:2021-02-22 22:31:05
【问题描述】:

我从 arm 开发者网站 gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz 将我的工具链更新为 gcc 8.3

我可以构建程序并在目标上运行它,它工作正常。但是当我尝试通过 Eclipse 进行远程调试时,出现以下错误:

0xb6fd6a40 in _dl_start_user () from /home/user/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/arm-linux-gnueabihf/libc/lib/ld-linux-armhf.so.3

Program received signal SIGINT, Interrupt.
0xb6fe62a2 in _dl_fini () at dl-fini.c:87
87  dl-fini.c: No such file or directory.

我在哪里可以找到源文件以及它们应该放在哪里?

我注意到早期的 arm 工具链有一个单独的 sysroot 包,但 8.3 缺少它。

【问题讨论】:

  • 专业提示:写函数名或文件名后缀为“github”的google搜索如"dl-fini.c" github一般都能找到。
  • 我想知道为什么我什至要在 glibc 代码中进行调试,这根本不是我的意图。我从来没有达到我的主要功能。要么我没有在我的主机上正确安装工具链,要么我的 beaglebone black 缺少某些东西。

标签: linux arm remote-debugging gdbserver


【解决方案1】:

问题在于从https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads下载的 GCC 8.3 包

gdb 二进制文件显然有问题,因为它不能按预期工作,而是可以通过从 linaros 主页下载来解决这个问题:https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-04
    • 1970-01-01
    • 2014-01-15
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 2012-12-17
    相关资源
    最近更新 更多