From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27247 invoked by alias); 13 Nov 2005 18:10:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 27233 invoked by uid 22791); 13 Nov 2005 18:10:17 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 13 Nov 2005 18:10:17 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EbMIw-0000ui-T7 for gdb-patches@sourceware.org; Sun, 13 Nov 2005 13:10:14 -0500 Date: Sun, 13 Nov 2005 18:17:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [rfa] Use a different breakpoint instruction for EABI GNU/Linux Message-ID: <20051113181014.GC2635@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20051111220241.GA30323@nevyn.them.org> <1131801657.9711.0.camel@pc960.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1131801657.9711.0.camel@pc960.cambridge.arm.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00165.txt.bz2 On Sat, Nov 12, 2005 at 01:20:57PM +0000, Richard Earnshaw wrote: > On Fri, 2005-11-11 at 22:02, Daniel Jacobowitz wrote: > > Patches have been posted recently for the Linux kernel to use a different > > interface for system calls, in which r7 holds the syscall number instead of > > embedding it in the SWI. With old-ABI compatibility mode disabled, the > > kernel never looks in the SWI at all. Which means that using a SWI > > to set a breakpoint doesn't work very well. > > > > Since 2003 the kernel has supported these particular undefined instructions > > (in the reserved space) as breakpoints. So if we see an EABI binary, assume > > we have a recent vintage of kernel, and use them. > > > > Tested on arm-none-linux-gnueabi. OK for HEAD and 6.4? > > OK. Thanks, committed. -- Daniel Jacobowitz CodeSourcery, LLC