我正在尝试在嵌入式平台(gateworks cambria,arm)上调试一个简单的应用程序。我在目标平台上使用交叉编译的 gdb。但是,当应用程序由于段错误而崩溃时,我无法在我的电脑上获得我习惯的 bt。我试图简化这个过程,这是完整的 gdb 输出:
dlopen failed on 'libthread_db.so.1' - File not found
GDB will not be able to debug pthreads.
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armeb-openwrt-linux"...
(no debugging symbols found)
(gdb) run /tmp/empower.aligned.click
Starting program: /usr/bin/click /tmp/empower.aligned.click
warning: no loadable sections found in added symbol-file /lib/ld-uClibc.so.0
(no debugging symbols found)
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: no loadable sections found in added symbol-file /usr/lib/libpcap.so.1.1
(no debugging symbols found)
warning: no loadable sections found in added symbol-file /usr/lib/libstdc++.so.6
(no debugging symbols found)
warning: no loadable sections found in added symbol-file /lib/libm.so.0
(no debugging symbols found)
warning: no loadable sections found in added symbol-file /lib/libgcc_s.so.1
(no debugging symbols found)
warning: no loadable sections found in added symbol-file /lib/libc.so.0
(no debugging symbols found)
/tmp/empower.click:20: While initializing 'FromDevice@13 :: FromDevice':
warning: moni0: no IPv4 address assigned
ctrl :: Socket: opened connection 8 to 192.168.1.132:4000
el :: EmpowerLVAPManager :: compute_bssid_mask :: FF:F1:21:32:0C:BA
expensive Packet::push; have 28 wanted 30
expensive Packet::push; have 28 wanted 30
expensive Packet::push; have 28 wanted 30
expensive Packet::push; have 28 wanted 30
expensive Packet::push; have 28 wanted 30
Program received signal SIGSEGV, Segmentation fault.
0xb6e0398c in ?? ()
(gdb) bt
#0 0xb6e0398c in ?? ()
Cannot access memory at address 0x52429a3c