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

  • Post author:
  • Post category:其他


(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 文件与二进制文件不匹配。



版权声明:本文为qq_15555275原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。