This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] Use a different breakpoint instruction for EABI GNU/Linux
- From: Richard Earnshaw <rearnsha at gcc dot gnu dot org>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 12 Nov 2005 13:20:57 +0000
- Subject: Re: [rfa] Use a different breakpoint instruction for EABI GNU/Linux
- References: <20051111220241.GA30323@nevyn.them.org>
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.
R.