ts-7000
[Top] [All Lists]

[ts-7000] Issue with remote debugging - ddd gdbserver

To:
Subject: [ts-7000] Issue with remote debugging - ddd gdbserver
From: "marcolamonato" <>
Date: Fri, 14 Dec 2007 09:17:02 -0000
Hi all,

I'm having some issues trying to remote debug my programs inside a TS-
7250 board. I'm currently working on a WinXp pc with Cygwin connected
through tcp to the TS-7250.

Let me tell you what I did so far:

1) I updated my cygwin version and I completely installed the "dev"
set of resources (ddd, gdb, make,? are all in it), anyway my gcc is
still the one in the "/opt" path from TS (I made an alias for it)

2) I configured the gdbserver compilation to be done with the arm-
unknown-linux-gnu-gcc (the one that has the alias to gcc?) and I
compiled it with the "make" command, no issue apparently

3) After starting cygwin, I just need to type in "startx" and, in the
following bash, "ddd my_program" and I'm ready to go with gdb handled
by ddd, both as a graphical interface or with a command line

4) When I first started "gdbserver" on my TS-7250 I had the
error "./gdbserver: error while loading shared libraries:
libthread_db.so.1: cannot open shared object file: No such file or
directory"

5) To solve this I added the file of my
pc "e:\cygwin\opt\crosstool\gcc-3.3.4-glibc-2.3.2\arm-unknown-linux-
gnu\arm-unknown-linux-gnu\lib\libthread_db-1.0.so" into the "/lib" of
my TS-7250 and I created a symbolic link with "ln ?
s /lib/libthread_db-1.0.so /lib/libthread_db.so.1". Now the gdbserver
works, but I'm not sure if I've done something correct or not,
moreover I linked that library, but my program uses the pthread
libraries actually and to have it running properly I had to insert
(in a previous stage) the "libpthread-0.10.so" file into "/lib" and
make the link "ln ?s /lib/ libpthread-0.10.so /lib/libpthread.so.0"

6) Now I'm trying to remote debug from the WinXp host my program
which is inside the TS-7250. I can with ddd or directly with gdb (in
both cases inside cygwin?), but I can have this setup to work. I mean
I'm able to connect them, on the target I call "./gdbserver
192.168.0.100:9737 my_program" and on the host I call "gdb
my_program" and then "target remote 192.168.0.58:9737". What happens
is that on the target side I read:
"Process splittex_ok created; pid = 120
Listening on port 9737
Remote debugging from host 192.168.0.100"
While on the host side:
"Remote debugging using 192.168.0.58:9737
0x00000000 in ?? ()"
If I now try to run the program writing "run" on the host I get:
" Starting program: /home/Marco/my_program
Error creating process /home/Marco/my_file, (error 193)"
and on the target appears:
"Killing inferior" and the gdbserver gets destroyed

I really don't know how to get through this issue? any idea?

Thanks again for your help!

Marco




Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU