我想要安装由Yocto构建的应用程序的调试包。
安装后,可执行文件位于.debug
目录中。
但是,当我尝试执行这些文件时,会出现以下错误:
-sh: /etc/.debug/app: cannot execute binary file: Exec format error
file命令显示:
file /etc/.debug/app
/etc/.debug/app: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter *empty*, for GNU/Linux 2.6.32, BuildID[sha1]=1dfc051dc47683e0715b842998daadd4d12c541e, not stripped
arch命令输出为armv7l
。
这个没有调试信息的应用程序似乎运行良好。
应用程序的file
命令是:
file /etc/app
/etc/app: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=1dfc051dc47683e0715b842998daadd4d12c541e, stripped
我希望执行使用调试符号编译的应用程序,这样当应用程序崩溃时会生成“coredump”。是否有方法来解决这个问题或者是否有其他更好的方法来运行包含调试信息的程序 [使用Yocto框架]?