From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28876 invoked by alias); 12 Aug 2004 23:08: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 28868 invoked from network); 12 Aug 2004 23:08:33 -0000 Received: from unknown (HELO sccrmhc12.comcast.net) (204.127.202.56) by sourceware.org with SMTP; 12 Aug 2004 23:08:33 -0000 Received: from plexity.net (c-24-20-152-76.client.comcast.net[24.20.152.76]) by comcast.net (sccrmhc12) with ESMTP id <2004081223083301200plk30e>; Thu, 12 Aug 2004 23:08:33 +0000 Received: by plexity.net (Postfix, from userid 1025) id B6EB92182C2; Thu, 12 Aug 2004 16:08:32 -0700 (PDT) Date: Thu, 12 Aug 2004 23:08:00 -0000 From: Deepak Saxena To: gdb@sources.redhat.com Subject: Re: Remote stub can't single-step, how to tell GDB? Message-ID: <20040812230832.GB8903@plexity.net> Reply-To: dsaxena@plexity.net References: <20040812214958.GA6063@plexity.net> <20040812223628.GA21314@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040812223628.GA21314@nevyn.them.org> Organization: Plexity Networks User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-08/txt/msg00206.txt.bz2 On Aug 12 2004, at 18:36, Daniel Jacobowitz was caught saying: > On Thu, Aug 12, 2004 at 02:49:58PM -0700, Deepak Saxena wrote: > > /* Single stepping. */ > > /* XXX For an RDI target we should ask the target if it can single-step. */ > > set_gdbarch_software_single_step (gdbarch, arm_software_single_step); > > > > Any pointers appreciated. > > Hi Deepak :-) > > Does GDB currently send single-step packets to the kgdb stub? What > version of GDB are you using? The call to set_gdbarch_software_single_step > sets up software (client-GDB-controlled) single stepping, and it should > not ask the stub to do so. > > [GDB's handling of target capabilities in this area is a bit shoddy. > But here it looks like the default matches what you want anyway.] You're right. The original stub was written with some ancient (5.x) version of GDB and it must have behaved differently. Debug remote on 6.0 shows GDB sending memory read/write commands. Tnx, ~Deepak -- Deepak Saxena - dsaxena at plexity dot net - http://www.plexity.net/ "Unlike me, many of you have accepted the situation of your imprisonment and will die here like rotten cabbages." - Number 6