From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29883 invoked by alias); 31 Mar 2009 05:46:08 -0000 Received: (qmail 29868 invoked by uid 22791); 31 Mar 2009 05:46:07 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Mar 2009 05:46:00 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LoWnO-0000IZ-42 for gdb@sourceware.org; Mon, 30 Mar 2009 22:45:58 -0700 Message-ID: <22798755.post@talk.nabble.com> Date: Tue, 31 Mar 2009 05:46:00 -0000 From: binom To: gdb@sourceware.org Subject: Re: gdbserver on sh4 In-Reply-To: <49BB6311.30805@evidence.eu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <49BA416E.6090901@evidence.eu.com> <49BB6311.30805@evidence.eu.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00188.txt.bz2 Dear michael , In your reply message it's written that "I fix this problem". Can you pl explain what was the problem and and which is the components to be updated for incorporating this fix? Below given is the details of the host side GDB and target side gdbserver. sh4-linux-gdb --version GNU gdb STMicroelectronics/Linux Base 6.5-33 [build Jul 30 2008] Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=sh4-linux". gdbserver --version GNU gdbserver STMicroelectronics/Linux Base 6.5-15 Copyright (C) 2006 Free Software Foundation, Inc. gdbserver is free software, covered by the GNU General Public License. This gdbserver was configured as "sh4-linux" Thankx, Bino Michael Trimarchi-3 wrote: > > Hi, > > michael wrote: >> Hi all, >> >> I crosscompile the gdb server for sh and I have trouble to debug a >> simple application, >> using it. >> >> I try with the gdb-6.8 >> >> ./configure --target=sh4-linux >> >> gdbserver >> sh3-linux-gcc is a nptl toolchain >> >> CC=sh3-linux-gcc ./configure --host=sh4-linux >> >> server side >> >> ./gdbserver-6.8 192.168.10.156:1234 >> ./foobar_sample Process ./foobar_sample created; >> pid = 817 Listening on port >> 1234 Remote >> debugging from host 192.168.8.242 >> >> client side >> GNU gdb 6.8 >> Copyright (C) 2008 Free Software Foundation, Inc. >> License GPLv3+: GNU GPL version 3 or later >> >> 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=x86_64-unknown-linux-gnu >> --target=sh-linux"... >> (gdb) target remote 192.168.10.156:1234 >> Remote debugging using 192.168.10.156:1234 >> [New Thread 817] >> Got object file from memory but can't read symbols: File format not >> recognized. >> 0x00000000 in ?? () >> >> This is how the toolchain is configured >> sh3-linux-gcc -v >> Using built-in specs. >> Target: sh3-linux >> Configured with: /home/kpit/fsfsrc/v0701/gcc-4.2-20061205/configure >> --host=i686-linux --target=sh3-linux >> --prefix=/usr/share/gnush4-nofpu_linux_v0701-1 --with-cpu=sh4-nofpu >> --with-sysroot=/usr/share/gnush4-nofpu_linux_v0701-1/sh3-linux/sys-root >> --with-local-prefix=/usr/share/gnush4-nofpu_linux_v0701-1/sh3-linux/sys-root >> --disable-nls --enable-threads --enable-symvers=gnu >> --disable-__cxa_atexit --enable-languages=c,c++ --enable-c99 >> --enable-long-long --disable-multilib >> >> (gdb) b main >> Breakpoint 1 at 0x4003e6: file main.c, line 23. >> (gdb) c >> Continuing. >> >> Program received signal SIGTRAP, Trace/breakpoint trap. >> 0x7b9dedec in ?? () >> (gdb) >> >> Can anybody help to find the problem? >> >> Kind regards >> Michael >> >> >> >> >> >> > I fix this problem, is not a gdb server or gdb problem. > > Michael > > -- View this message in context: http://www.nabble.com/gdbserver-on-sh4-tp22494576p22798755.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.