Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/include Implement own process register cap...



details:   https://anonhg.NetBSD.org/src/rev/6be8237732cb
branches:  trunk
changeset: 832566:6be8237732cb
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri May 18 20:09:32 2018 +0000

description:
Implement own process register capture from userland.

NetBSD/usermode now creates readable and sensible coredumps

diffstat:

 sys/arch/usermode/include/reg.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 470be3560cc3 -r 6be8237732cb sys/arch/usermode/include/reg.h
--- a/sys/arch/usermode/include/reg.h   Fri May 18 19:04:10 2018 +0000
+++ b/sys/arch/usermode/include/reg.h   Fri May 18 20:09:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: reg.h,v 1.3 2018/01/13 14:39:15 reinoud Exp $ */
+/* $NetBSD: reg.h,v 1.4 2018/05/18 20:09:32 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,10 +29,16 @@
 #ifndef _ARCH_USERMODE_INCLUDE_REG_H
 #define _ARCH_USERMODE_INCLUDE_REG_H
 
+#include "machine/mcontext.h"
+
+/* registers are already in the right order since they follow mcontext.h */
 struct reg {
+       __gregset_t regs;
 };
 
+/* registers are already in the right order since they follow mcontext.h */
 struct fpreg {
+        __fpregset_t fpregs;
 };
 
 /* x86_64 only */



Home | Main Index | Thread Index | Old Index