From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21839 invoked by alias); 31 Mar 2009 08:26:20 -0000 Received: (qmail 21446 invoked by uid 22791); 31 Mar 2009 08:26:18 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=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; Tue, 31 Mar 2009 08:26:11 +0000 Received: from [192.168.0.194] (ident=michael) by panicking.kicks-ass.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1LoZoD-0000ES-54; Tue, 31 Mar 2009 10:59:01 +0200 Message-ID: <49D1D2F6.1000206@gandalf.sssup.it> Date: Tue, 31 Mar 2009 08:26:00 -0000 From: Michael Trimarchi User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: binom CC: gdb@sourceware.org, linux-sh@vger.kernel.org Subject: Re: gdbserver on sh4 References: <49BA416E.6090901@evidence.eu.com> <49BB6311.30805@evidence.eu.com> <22798755.post@talk.nabble.com> In-Reply-To: <22798755.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00189.txt.bz2 Hi, binom wrote: > 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". > The problem is kernel side and not gdb side. I send a patch to the linux-sh mailing list. They save the dsp register on the stack before the processor cpu register but the offset of the struct is wrong calculated and if the linux kernel is compiled with the dsp option the PEEKUSR return the wrong register value. Michael