Thanks for the advice. I think I have this stuff set up correctly, but I
am not really sure what solib-absolute-prefix does so mine is set to
/dev/null. :)

Steven

> -----Original Message-----
> From: Daniel Schnell [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 07, 2008 8:17 AM
> To: Steven Seeger; Gilles Chanteperdrix
> Cc: [email protected]
> Subject: RE: [Xenomai-help] SIGTRAP
> 
> Okay,
> 
> We had the same problem, different target (ppc). You have to be
careful
> to give the remote gdb the correct paths to the target binaries
> including the shared libraries. We are using ssh and have a script to
> start the gdbserver on the target with a command line that looks
> basically like this:
> 
> ssh -f [EMAIL PROTECTED] "cd $workingdir;killall gdbserver;export
> LD_LIBRARY_PATH='/lib:/usr/lib:/usr/xenomai/lib:/opt/marel/runtime
> /ppc/lib' && echo $LD_LIBRARY_PATH && gdb
> server $hostip:45678 $filename"
> 
> Then the remote gdb is started by a feature enhanced kdbg with another
> script where the important pieces are:
> 
> if [ "$cpu" = "ppc" ]; then
>         echo set solib-absolute-prefix /opt/rootfs > tmp.gdb
>         echo set solib-search-path
> /opt/marel/runtime/ppc/lib:/opt/rootfs/usr/xenomai/lib >> tmp.gdb
>         echo break main >> tmp.gdb
>         echo Starting session for ppc
>         kdbg -r $targetip:45678 -d 'powerpc-603e-linux-gnu-gdb
> --fullname --nx --command=tmp.gdb' $workingdir/$filename
> 
>         # Cleanup file and kill gdbserver
>         rm tmp.gdb
>         ssh -f [EMAIL PROTECTED] "killall gdbserver
> fi
> 
> /opt/rootfs is our target root filesystem. The solib-xxxx are
important,
> otherwise gdb will take the standard host libraries.
> 
> 
> Best regards,
> 
> Daniel.
> 
> 
> Steven Seeger wrote:
> > Kernel 2.6.23.12 remote debugger (x86). Gdb 6.7.1. glibc is 2.6.1.
> >
> > Steven
> >
> >> -----Original Message-----
> >> From: Daniel Schnell [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, February 07, 2008 7:41 AM
> >> To: Steven Seeger; Gilles Chanteperdrix
> >> Cc: [email protected]
> >> Subject: RE: [Xenomai-help] SIGTRAP
> >>
> >> How do you debug ? Are you using remote debugger or native debugger
> >> on target ? Which debugger version and glibc version are you using
?
> >> And which kernel ?
> >>
> >> Ciao,
> >>
> >> Daniel.
> 
> 
> 
> --
>                                  |
>                                  | www.marel.com
> Tel: +354 563 8000 Fax: +354 563 8001
> Iceland

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to