gdb 调试遇到的问题 #0 <unavailable> in ?? ()

(gdb) set sysroot “/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi”
(gdb)
(gdb)
(gdb) show sysroot
The current system root is “”/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi"".
(gdb) show solib-search-path
The search path for loading non-absolute shared library symbol files is “/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi”.

(gdb) bt
#0 in ?? ()
Backtrace stopped: not enough registers or memory available to unwind further

(gdb) info sharedlibrary
From To Syms Read Shared Object Library
No /lib/librt.so.1
No /usr/lib/libcrypto.so.1.0.2
No /lib/libpthread.so.0
No /usr/lib/libpaho-mqtt3as.so.1
No /lib/libuuid.so.1
No /usr/lib/libstdc++.so.6
No /lib/libgcc_s.so.1
No /lib/libc.so.6
No /lib/ld-linux-armhf.so.3
No /lib/libdl.so.2
No /usr/lib/libssl.so.1.0.2
No /lib/libm.so.6
No /lib/libnss_files.so.2

(gdb) show archi
The target architecture is set automatically (currently i386)
(gdb) set sysroot /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi
warning: /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/librt.so.1': Shared library architecture unknown is not compatible with target architecture i386. warning:/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/librt.so.1’: Shared library architecture unknown is not compatible with target architecture i386.
Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/librt.so.1…Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/.debug/librt-2.30.so…done.
done.
warning: /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/libcrypto.so.1.0.2': Shared library architecture unknown is not compatible with target architecture i386. warning:/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/libcrypto.so.1.0.2’: Shared library architecture unknown is not compatible with target architecture i386.
Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/libcrypto.so.1.0.2…Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/.debug/libcrypto.so.1.0.2…done.
done.
warning: /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/libpthread.so.0': Shared library architecture unknown is not compatible with target architecture i386. warning:/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/libpthread.so.0’: Shared library architecture unknown is not compatible with target architecture i386.
Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/libpthread.so.0…Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/.debug/libpthread-2.30.so…done.
done.
warning: File “/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/libthread_db-1.0.so” auto-loading has been declined by your auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/libthread_db-1.0.so line to your configuration file "/home/meng/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/meng/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the shell: info "(gdb)Auto-loading safe path" warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. warning:/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/libpaho-mqtt3as.so.1’: Shared library architecture unknown is not compatible with target architecture i386.
warning: /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/libpaho-mqtt3as.so.1': Shared library architecture unknown is not compatible with target architecture i386. Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/libpaho-mqtt3as.so.1...Reading symbols from /opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/usr/lib/.debug/libpaho-mqtt3as.so.1.0...done. done. warning:/opt/pancake-core-sdk/sysroots/armv7ahf-neon-poky-linux-gnueabi/lib/libuuid.so.1’: Shared library architecture unknown is not compatible with target architecture i386
。。。。

mVirtualBox:~/Share/2_files/coredump$ readelf -h core_homeauto
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2’s complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: CORE (Core file)
Machine: ARM
Version: 0x1
Entry point address: 0x0
Start of program headers: 52 (bytes into file)
Start of section headers: 0 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 87
Size of section headers: 0 (bytes)
Number of section headers: 0
Section header string table index: 0

中间的错误是由于运行的coredump 文件与二进制文件不匹配。

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值