From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31838 invoked by alias); 20 Aug 2003 02:33:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31814 invoked from network); 20 Aug 2003 02:33:35 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 20 Aug 2003 02:33:35 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19pIn1-0000J8-1H for ; Tue, 19 Aug 2003 22:33:35 -0400 Date: Wed, 20 Aug 2003 02:33:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: Powerpc and software single step Message-ID: <20030820023335.GA1148@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <16185.27333.689024.383508@kitch0.watson.ibm.com> <1030819175512.ZM31220@localhost.localdomain> <20030819191300.GA24336@nevyn.them.org> <3F42DD3C.9020508@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F42DD3C.9020508@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00330.txt.bz2 On Tue, Aug 19, 2003 at 10:30:20PM -0400, Andrew Cagney wrote: > > >Could we do this slightly differently? SOFTWARE_SINGLE_STEP_P is used > >in two non-platform-specific files: infptrace.c for a sanity check, and > >infrun.c. In infrun, the only line which matters for this case is in > >resume: > > if (SOFTWARE_SINGLE_STEP_P () && step) > > > >Why not add a hook to check there which lets the user use software > >single step? It'll require playing with the target macros; we'd need > >something like: > > SOFTWARE_SINGLE_STEP - perform software single step > > SOFTWARE_SINGLE_STEP_P - SOFTWARE_SINGLE_STEP available > > SOFTWARE_SINGLE_STEP_ONLY_P - no hardware singlestep available > > (check that in infptrace instead of SOFTWARE_SINGLE_STEP_P?) > > > >I've wanted to flip back and forth at runtime before. > > See: Cleanup software single step. > http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=120 > (but don't take the suggested solution literally). > > I think kevin was playing with it (?) - search the mail archives. This > needs to be fixed - I don't think a workaround is acceptable. I _think_ that's a different problem... In any case it's definitely a real problem. See the post I made a few days ago about a thread debugging problem which causes single steps to turn into continues. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer