Hi Andrea
I setup gdb debugging as below..
--- DM8127 side ----
root@DM8127_IPNC:/opt/ipnc# /dsp/gdbserver :1000 ./boa -c /etc
Process ./boa created; pid = 667
Listening on port 1000
Remote debugging from host 192.168.0.21
Killing all inferiors
root@DM8127_IPNC:/opt/ipnc# /dsp/gdbserver :1000 ./boa -c /etc
Process ./boa created; pid = 671
Listening on port 1000
Remote debugging from host 192.168.0.21
ApproDrvInit: 3
queue id:131076
queue id:0
queue id:32769
HASH_TABLE_SIZE = 587
server_port=80
[10/Nov/2012:11:42:44 +0000] boa: server version Boa/0.94.13
[10/Nov/2012:11:42:44 +0000] boa: server built Jan 24 2014 at 10:48:44.
[10/Nov/2012:11:42:44 +0000] boa: starting server pid=671, port 80
Killing all inferiors
root@DM8127_IPNC:/opt/ipnc# /dsp/gdbserver :1000 ./boa -c /etc
Process ./boa created; pid = 677
Listening on port 1000
Remote debugging from host 192.168.0.21
--- Host PC side ---
jeonghwan@ubuntu:~/workspace/dm8127/Source/ipnc_rdk/ipnc_app/network/boa-0.94.13/src$ ~/workspace/dm8127/Source/ti_tools/linux_devkit/bin/arm-arago-linux-gnueabi-gdb ./boa
GNU gdb (GDB) 7.2
Copyright (C) 2010 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-linux --target=arm-arago-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeonghwan/workspace/dm8127/Source/ipnc_rdk/ipnc_app/network/boa-0.94.13/src/boa...done.
(gdb) target remote 192.168.0.26:1000
Remote debugging using 192.168.0.26:1000
Reading symbols from /home/jeonghwan/workspace/dm8127/Source/ti_tools/linux_devkit/arm-arago-linux-gnueabi/lib/ld-linux.so.3...(no debugging symbols found)...done.
Loaded symbols for /home/jeonghwan/workspace/dm8127/Source/ti_tools/linux_devkit/arm-arago-linux-gnueabi/lib/ld-linux.so.3
0x40062790 in ?? ()
from /home/jeonghwan/workspace/dm8127/Source/ti_tools/linux_devkit/arm-arago-linux-gnueabi/lib/ld-linux.so.3
(gdb) list
Cannot access memory at address 0x0
117 {
118 int c; /* command line arg */
119 int server_s; /* boa socket */
120 struct soap *soap;
121
122
123 pthread_t hello_thread;
124
125 /* set umask to u+rw, u-x, go-rwx */
126 c = umask(~0600);
(gdb) c
Continuing.
jeonghwan@ubuntu:~/workspace/dm8127/Source/ti_tools$ find . -name gdbserver
./linux_devkit/arm-arago-linux-gnueabi/usr/bin/gdbserver
Above gdbserver should be copied to DM8127
Hoping this t may be helpful ..
Thanks .