Hi All,
I try to debug simple hello program using gdbserever on onboard OMAP-L138 linux and gdb client in host
I have this segmentation fault in each time try to start debugging the program , the error log as
[root@VIC-TUA-L0691 Documents]# arm-none-linux-gnueabi-gdb ./arm_heloo_test_dynamic
GNU gdb (Sourcery G++ Lite 2009q1-203) 6.8.50.20081022-cvs
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 "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>...
(gdb) set remotetimeout 0
(gdb) set solib-absolute-prefix /home/hossam/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/
(gdb) target remote 192.168.1.28:12345
Remote debugging using 192.168.1.28:12345
0x400007b0 in _start () from /home/hossam/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/lib/ld-linux.so.3
(gdb) load
Loading section .interp, size 0x13 lma 0x8134
Loading section .note.ABI-tag, size 0x20 lma 0x8148
Loading section .hash, size 0x38 lma 0x8168
Loading section .dynsym, size 0x90 lma 0x81a0
Loading section .dynstr, size 0x9f lma 0x8230
Loading section .gnu.version, size 0x12 lma 0x82d0
Loading section .gnu.version_r, size 0x40 lma 0x82e4
Loading section .rel.dyn, size 0x8 lma 0x8324
Loading section .rel.plt, size 0x28 lma 0x832c
Loading section .init, size 0xc lma 0x8354
Loading section .plt, size 0x50 lma 0x8360
Loading section .text, size 0x3e4 lma 0x83b0
Loading section .fini, size 0x8 lma 0x8794
Loading section .rodata, size 0x14 lma 0x879c
Loading section .ARM.extab, size 0xc lma 0x87b0
Loading section .ARM.exidx, size 0x58 lma 0x87bc
Loading section .eh_frame, size 0x4 lma 0x8814
Loading section .init_array, size 0x4 lma 0x10818
Loading section .fini_array, size 0x4 lma 0x1081c
Loading section .jcr, size 0x4 lma 0x10820
Loading section .dynamic, size 0xf0 lma 0x10824
Loading section .got, size 0x24 lma 0x10914
Loading section .data, size 0x8 lma 0x10938
Start address 0x83b0, load size 2056
Transfer rate: 34 KB/sec, 89 bytes/write.
(gdb) b main
Breakpoint 1 at 0x8464: file heloo.c, line 5.
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb)
Continuing.
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
Actually I cannot understand what is the root cause of this error, however i try to compile the program static and it runs fine
so I speculate , may be something in the shared libs but i copy almost all the needed shared libs from the tool chain to the filesystem and still the same error !!
can any one have suggestions please ?