Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips Expose kdbpeek() and kdbrpeek() for dtrace.
details: https://anonhg.NetBSD.org/src/rev/e6c09c57af45
branches: trunk
changeset: 960794:e6c09c57af45
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Mar 29 03:09:41 2021 +0000
description:
Expose kdbpeek() and kdbrpeek() for dtrace.
diffstat:
sys/arch/mips/include/db_machdep.h | 8 +++++++-
sys/arch/mips/mips/mips_stacktrace.c | 8 ++++----
2 files changed, 11 insertions(+), 5 deletions(-)
diffs (58 lines):
diff -r bf935704e98f -r e6c09c57af45 sys/arch/mips/include/db_machdep.h
--- a/sys/arch/mips/include/db_machdep.h Mon Mar 29 03:07:33 2021 +0000
+++ b/sys/arch/mips/include/db_machdep.h Mon Mar 29 03:09:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.h,v 1.36 2021/03/29 03:07:33 simonb Exp $ */
+/* $NetBSD: db_machdep.h,v 1.37 2021/03/29 03:09:41 simonb Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -99,6 +99,12 @@
ddb_regs = *regs;
}
+/*
+ * Helper functions for fetching 32-bit and 64-bit kernel memory.
+ */
+bool kdbpeek(vaddr_t, unsigned *);
+mips_reg_t kdbrpeek(vaddr_t addr, size_t n);
+
/*
* Constants for KGDB.
diff -r bf935704e98f -r e6c09c57af45 sys/arch/mips/mips/mips_stacktrace.c
--- a/sys/arch/mips/mips/mips_stacktrace.c Mon Mar 29 03:07:33 2021 +0000
+++ b/sys/arch/mips/mips/mips_stacktrace.c Mon Mar 29 03:09:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_stacktrace.c,v 1.7 2020/09/24 03:17:18 mrg Exp $ */
+/* $NetBSD: mips_stacktrace.c,v 1.8 2021/03/29 03:09:42 simonb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mips_stacktrace.c,v 1.7 2020/09/24 03:17:18 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_stacktrace.c,v 1.8 2021/03/29 03:09:42 simonb Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -191,7 +191,7 @@
};
-static bool
+bool
kdbpeek(vaddr_t addr, unsigned *valp)
{
if (addr & 3) {
@@ -211,7 +211,7 @@
}
}
-static mips_reg_t
+mips_reg_t
kdbrpeek(vaddr_t addr, size_t n)
{
mips_reg_t rc = 0;
Home |
Main Index |
Thread Index |
Old Index