From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28073 invoked by alias); 23 Aug 2004 19:22:00 -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 28063 invoked from network); 23 Aug 2004 19:22:00 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 23 Aug 2004 19:22:00 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BzKOG-00039r-2Z for ; Mon, 23 Aug 2004 15:22:00 -0400 Date: Mon, 23 Aug 2004 19:22:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: Unable to step over (n and ni) on mipsel-linux... Message-ID: <20040823192159.GA12007@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <412649F4.9040002@avtrex.com> <412A25B1.7080308@gnu.org> <412A30E5.9080809@avtrex.com> <412A3672.5040904@gnu.org> <412A39AF.1080103@avtrex.com> <20040823184801.GA10657@nevyn.them.org> <412A3E3F.3020409@avtrex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <412A3E3F.3020409@avtrex.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-08/txt/msg00293.txt.bz2 On Mon, Aug 23, 2004 at 11:58:07AM -0700, David Daney wrote: > For next and nexti it does not need to analyse the stack frames. > > I have half a mind to hack up mips-tdep.c:mips32_next_pc so that it > returns the address following the jal/jalr if step_over_calls == > STEP_OVER_ALL or some such thing. IMO, this is reasonable on targets where we're using software single step anyway. It's also reasonable if trust_readonly_sections is true. Would anyone object to an optional gdbarch method that took a PC, and returned the return address of the call represented by that PC, if the instruction is a call? -- Daniel Jacobowitz