Hi, thanks for answering gdbserver belongs to the Toradex image file, built from Angstrom gdb is shipped in Linaro 4.9-2014.09_linux toolchain
There are two problems here: 1- gdbinit has Python script and gdb is not compiled with Python script support 2- The SIGSEGV after symbol problem
I addressed (1) by not using that gdbinit :^) I managed to work (2) around by disabling automatic symbol loading.
I've recently updated the Toradex module to the latest image, tomorrow I will try with that one and eventually with Linaro's own gdbserver
Xiè xie
On 24/09/15 12:54, Yao Qi wrote:
Hi Sergio,
On 18/09/15 17:20, Sergio R. Caprile wrote:
TARGET:
root@colibri-vf:~# gdbserver :2345 /home/root/Hello_world
Where do you get this gdbserver? Is it shipped in 4.9-2014.09_linux toolchain?
BUILD:
[toradex@EL-Toradex ~]$ gcc-linaro/bin/arm-linux-gnueabihf-gdb workspace/Hello_world/Debug/Hello_world GNU gdb (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) 7.6.1-2013.10 Copyright (C) 2013 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 "--host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf". For bug reporting instructions, please see: https://bugs.launchpad.net/gcc-linaro... Reading symbols from /media/sf_EL-Toradex/Hello_world/Debug/Hello_world...done. (gdb) target remote 192.168.1.6:2345 Remote debugging using 192.168.1.6:2345 Reading symbols from /home/toradex/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/lib/ld-linux-armhf.so.3...done.
Loaded symbols for /home/toradex/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/libc/lib/ld-linux-armhf.so.3
process_dl_debug (dl_debug=0x0, dl_debug@entry=<error reading variable: Cannot access memory at address 0x34>) at rtld.c:2415 2415 rtld.c: No such file or directory. (gdb) continue Continuing.
Program received signal SIGSEGV, Segmentation fault. 0x76fe36f8 in _dl_sort_fini (maps=0x7efff98c, nmaps=0, used=0x0, ns=<optimized out>) at dl-fini.c:70 70 dl-fini.c: No such file or directory. (gdb)
I have no clue why program receives SIGSEGV.