Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys add a register validation hook for ptrace on netbsd32 to...
details: https://anonhg.NetBSD.org/src/rev/c2b48ed221f3
branches: trunk
changeset: 962412:c2b48ed221f3
user: christos <christos%NetBSD.org@localhost>
date: Sat Jul 20 18:23:05 2019 +0000
description:
add a register validation hook for ptrace on netbsd32 to be used for
64 -> 32 debugging.
diffstat:
sys/kern/compat_stub.c | 3 ++-
sys/sys/compat_stub.h | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r c034cb1a01df -r c2b48ed221f3 sys/kern/compat_stub.c
--- a/sys/kern/compat_stub.c Sat Jul 20 15:55:40 2019 +0000
+++ b/sys/kern/compat_stub.c Sat Jul 20 18:23:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_stub.c,v 1.14 2019/07/16 22:57:55 pgoyette Exp $ */
+/* $NetBSD: compat_stub.c,v 1.15 2019/07/20 18:23:05 christos Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -273,3 +273,4 @@
* this is true for i386 and sgimips.)
*/
struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
+struct netbsd32_reg_validate_hook_t netbsd32_reg_validate_hook;
diff -r c034cb1a01df -r c2b48ed221f3 sys/sys/compat_stub.h
--- a/sys/sys/compat_stub.h Sat Jul 20 15:55:40 2019 +0000
+++ b/sys/sys/compat_stub.h Sat Jul 20 18:23:05 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_stub.h,v 1.16 2019/05/17 07:37:12 msaitoh Exp $ */
+/* $NetBSD: compat_stub.h,v 1.17 2019/07/20 18:23:05 christos Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -354,4 +354,6 @@
* this is true for i386 and sgimips.)
*/
MODULE_HOOK(netbsd32_machine32_hook, const char *, (void));
+MODULE_HOOK(netbsd32_reg_validate_hook, int,
+ (struct lwp *, const struct reg *));
#endif /* _SYS_COMPAT_STUB_H */
Home |
Main Index |
Thread Index |
Old Index