Add support for breakpoints to ARMLinux emulation.

This commit is contained in:
bjh21 2002-01-27 15:27:33 +00:00
parent 4929dc576f
commit 8c36606f84
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_sys_machdep.c,v 1.1 2002/01/23 15:52:59 bjh21 Exp $ */
/* $NetBSD: linux_sys_machdep.c,v 1.2 2002/01/27 15:27:33 bjh21 Exp $ */
/*-
* Copyright (c) 2002 Ben Harris
@ -29,7 +29,7 @@
#include <sys/param.h>
__RCSID("$Id: linux_sys_machdep.c,v 1.1 2002/01/23 15:52:59 bjh21 Exp $");
__RCSID("$Id: linux_sys_machdep.c,v 1.2 2002/01/27 15:27:33 bjh21 Exp $");
#include <sys/systm.h>
@ -41,6 +41,14 @@ __RCSID("$Id: linux_sys_machdep.c,v 1.1 2002/01/23 15:52:59 bjh21 Exp $");
#include <arm/cpufunc.h>
int
linux_sys_breakpoint(struct proc *p, void *v, register_t *retval)
{
trapsignal(p, SIGTRAP, 0);
return ERESTART; /* Leave PC pointing back at the breakpoint. */
}
int
linux_sys_cacheflush(struct proc *p, void *v, register_t *retval)
{

View File

@ -1,4 +1,4 @@
$NetBSD: syscalls.master,v 1.5 2002/01/27 14:08:56 bjh21 Exp $
$NetBSD: syscalls.master,v 1.6 2002/01/27 15:27:33 bjh21 Exp $
; Derived from sys/compat/linux/arch/*/syscalls.master
; and from Linux 2.4.12 arch/arm/kernel/calls.S
@ -413,7 +413,7 @@
; array for the whole lot.
256 UNIMPL
257 UNIMPL breakpoint
257 STD { int linux_sys_breakpoint(void); }
258 STD { int linux_sys_cacheflush(uintptr_t from, \
intptr_t to); }
259 UNIMPL usr26