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
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