From d535508793a8e9389379543ef8d506e50c10cf67 Mon Sep 17 00:00:00 2001 From: Hunter Laux Date: Fri, 20 Jun 2014 04:13:14 -0700 Subject: Add support for the arm breakpoint syscall OABI arm used a software interrupt(0xef9f0001) for breakpoints. Since 2005 gdb has used the break instruction(0xe7f001f0) for EABI. Apparently Steel Bank Common Lisp still uses the swi instruction. This is the kernel implementation: http://lxr.free-electrons.com/source/arch/arm/kernel/traps.c#L598 Signed-off-by: Hunter Laux Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- linux-user/arm/syscall.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-user/arm') diff --git a/linux-user/arm/syscall.h b/linux-user/arm/syscall.h index ce2c2a8ed0..e0d2cc3e5d 100644 --- a/linux-user/arm/syscall.h +++ b/linux-user/arm/syscall.h @@ -29,6 +29,7 @@ struct target_pt_regs { #define ARM_THUMB_SYSCALL 0 #define ARM_NR_BASE 0xf0000 +#define ARM_NR_breakpoint (ARM_NR_BASE + 1) #define ARM_NR_cacheflush (ARM_NR_BASE + 2) #define ARM_NR_set_tls (ARM_NR_BASE + 5) -- cgit v1.2.3