From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29953 invoked by alias); 20 Aug 2003 02:30:34 -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 29919 invoked from network); 20 Aug 2003 02:30:31 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 20 Aug 2003 02:30:31 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id F14D72B88; Tue, 19 Aug 2003 22:30:20 -0400 (EDT) Message-ID: <3F42DD3C.9020508@redhat.com> Date: Wed, 20 Aug 2003 02:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Kevin Buettner , Jimi Xenidis , gdb-patches@sources.redhat.com Subject: Re: Powerpc and software single step References: <16185.27333.689024.383508@kitch0.watson.ibm.com> <1030819175512.ZM31220@localhost.localdomain> <20030819191300.GA24336@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00329.txt.bz2 > 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. Andrew