From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18099 invoked by alias); 10 Oct 2003 02:28:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18048 invoked from network); 10 Oct 2003 02:28:30 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 10 Oct 2003 02:28:30 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 1A7272B89; Thu, 9 Oct 2003 22:28:28 -0400 (EDT) Message-ID: <3F86194B.9020902@redhat.com> Date: Fri, 10 Oct 2003 02:28:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: saleru.raja@iap-online.com Cc: "gdb@sources.redhat.com" Subject: Re: remote serial protocol - gdbserver References: <200310100204.h9A24Ht25169@www.iap-online.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00172.txt.bz2 > Hi, > I have a querry related to remote serial protocl. > > I have been ported gdbserver on RTOS (micro itron) running on SH3 > processor. > while debugging the remote application with "next" user command from gdb, > > Gdb send the following packets to gdbserver > > m0,2#fb > M0,2:20c3#0d > > simmilary for Z packet with zero address. > > Here if the address is zero, what does it mean ? for example in this > packet "M0,2:20c3#0d" where the TRAP instruction should be write ? > where the data should be read from or write into ? > > The solution for this querry will be greatly appreciated. Can you post a gdb session with "set debug remote 1" enabled? A wild guess is that it's trying to set a breakpoint at the return address of the function it's trying to NEXT over, only its getting that return address wrong. Andrew