From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19723 invoked by alias); 2 Apr 2003 14:45:21 -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 19716 invoked from network); 2 Apr 2003 14:45:19 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 2 Apr 2003 14:45:19 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 558152B23; Wed, 2 Apr 2003 09:45:18 -0500 (EST) Message-ID: <3E8AF77E.3040102@redhat.com> Date: Wed, 02 Apr 2003 14:45: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: Miles Bader Cc: gdb@sources.redhat.com Subject: Re: testing current target (in gdb code) References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00022.txt.bz2 > Hi, > > I'm currently working on making gdb's v850 support work on real CPUs, > and unfortunately I can't get the hardware single-stepping to work > consistently (the hardware has lots of weird restrictions, and by doing > lots of tricks I can get it to work on some processors, but not others). > > So I'd like to use GDB's software-single-stepping facility for those > cases where I can't use hardware (thanks to Kevin Buettner who told me > where to find it!); however, I'd still like to use hardware > single-stepping when possible as it seems likely to always be reliable > in some corner case or another, no matter how careful I am. In > particular, `hardware' single-stepping works great in GDB's simulator. > > I guess I can do this sort of thing by defining SOFTWARE_SINGLE_STEP_P > to call a function that looks at the current target and returns an > appropriate boolean for it (defaulting to 1 I suppose). See: SOFTWARE_SINGLE_STEP is backwards/sideways http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=274&return_url=http%3A%2F%2Fsources.redhat.com%2Fcgi-bin%2Fgnatsweb.pl%3Fdatabase%3Dgdb%26cmd%3Dsubmit%2520query%26category%3Dall%26severity%3Dall%26priority%3Dall%26responsible%3Dall%26submitter_id%3Dall%26state%3Dall%26ignoreclosed%3DIgnore%2520Closed%26class%3Dall%26synopsis%3Dsoftware%26multitext%3D%26columns%3Dcategory%26columns%3Dstate%26columns%3Dclass%26columns%3Dpriority%26columns%3Dresponsible%26columns%3Doriginator%26columns%3Dsynopsis%26displaydate%3DDisplay%2520Current%2520Date%26sortby%3DResponsible%26.cgifields%3Doriginatedbyme%26.cgifields%3Ddisplaydate%26.cgifields%3Dcolumns%26.cgifields%3Dignoreclosed I also think this came up (again) recently, perhaphs search for SOFTWARE_SINGLE_STEP in the mail archives. Andrew