From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7543 invoked by alias); 20 Feb 2003 15:53:33 -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 7536 invoked from network); 20 Feb 2003 15:53:32 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by 172.16.49.205 with SMTP; 20 Feb 2003 15:53:32 -0000 Received: from miles by fencepost.gnu.org with local (Exim 4.10) id 18lt0u-0007iR-00; Thu, 20 Feb 2003 10:53:32 -0500 Date: Thu, 20 Feb 2003 15:53:00 -0000 To: gdb@sources.redhat.com Subject: Re: emulating single-step in gdbserver? Message-ID: <20030220155332.GA29101@gnu.org> References: <20030220150813.GA28933@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030220150813.GA28933@nevyn.them.org> User-Agent: Mutt/1.3.28i Blat: Foop From: Miles Bader X-SW-Source: 2003-02/txt/msg00412.txt.bz2 Thanks for the response. It looks like I won't need to do this after all -- I've been informed that the CPU _does_ implement single-stepping, it's just that the documentation claims otherwise to avoid having to support it (and all the other debugger writers use it, so it works)! > > A related question, BTW, is what's the precise meaning of > > `the_low_target.breakpoint_reinsert_addr'? It's not documented very > > well... > > It's essentially a very limitted next_pc function. The only > breakpoints gdbserver places right now are in empty marker functions in > the thread library. After hitting one, it either single-steps or > places a breakpoint at the function's return address, and then > reinserts it. The advantage is that finding the return address is > quick and very simple. I see. Now the comments that are there make a bit more sense; I was very confused when I saw the mips just returned the function's return-address! I guess I can just set it to null and let gdb single-step over the breakpoint. Thanks, -Miles -- Next to fried food, the South has suffered most from oratory. -- Walter Hines Page