From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3563 invoked by alias); 13 Mar 2009 11:23:07 -0000 Received: (qmail 3555 invoked by uid 22791); 13 Mar 2009 11:23:06 -0000 X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from static-88-194-224-77.ipcom.comunitel.net (HELO panicking.kicks-ass.org) (77.224.194.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Mar 2009 11:22:13 +0000 Received: from [192.168.0.197] (ident=michael) by panicking.kicks-ass.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Li5zR-0000vu-Jf for gdb@sourceware.org; Fri, 13 Mar 2009 12:55:50 +0100 Message-ID: <49BA416E.6090901@evidence.eu.com> Date: Fri, 13 Mar 2009 11:23:00 -0000 From: michael User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: gdb@sourceware.org Subject: gdbserver on sh4 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00084.txt.bz2 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