Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb kgdb still needs db_{get, put}_value in ddb/db_access...
details: https://anonhg.NetBSD.org/src/rev/da0a1e1ecaa1
branches: trunk
changeset: 747704:da0a1e1ecaa1
user: bsh <bsh%NetBSD.org@localhost>
date: Sun Sep 27 18:24:23 2009 +0000
description:
kgdb still needs db_{get,put}_value in ddb/db_access.c when SOFTWARE_SSTEP is defined in db_machdep.h.
diffstat:
sys/ddb/db_access.c | 16 ++++++++++++++--
sys/ddb/files.ddb | 4 ++--
2 files changed, 16 insertions(+), 4 deletions(-)
diffs (68 lines):
diff -r 95a2adaa2ccf -r da0a1e1ecaa1 sys/ddb/db_access.c
--- a/sys/ddb/db_access.c Sun Sep 27 18:19:18 2009 +0000
+++ b/sys/ddb/db_access.c Sun Sep 27 18:24:23 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_access.c,v 1.19 2009/03/07 22:02:17 ad Exp $ */
+/* $NetBSD: db_access.c,v 1.20 2009/09/27 18:24:23 bsh Exp $ */
/*
* Mach Operating System
@@ -30,7 +30,9 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_access.c,v 1.19 2009/03/07 22:02:17 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_access.c,v 1.20 2009/09/27 18:24:23 bsh Exp $");
+
+#include "opt_kgdb.h"
#include <sys/param.h>
#include <sys/proc.h>
@@ -41,8 +43,12 @@
/*
* Access unaligned data items on aligned (longword)
* boundaries.
+ *
+ * This file is shared by ddb and kgdb.
*/
+#if defined(DDB) || defined(KGDB) && defined(SOFTWARE_SSTEP)
+
const int db_extend[] = { /* table for sign-extending */
0,
0xFFFFFF80,
@@ -91,6 +97,10 @@
db_write_bytes(addr, size, data);
}
+#endif /* DDB || KGDB && SOFTWARE_SSTEP */
+
+#ifdef DDB
+
void *
db_read_ptr(const char *name)
{
@@ -120,3 +130,5 @@
db_read_bytes((db_addr_t)val, sizeof(p), (char *)&p);
return p;
}
+
+#endif /* DDB */
diff -r 95a2adaa2ccf -r da0a1e1ecaa1 sys/ddb/files.ddb
--- a/sys/ddb/files.ddb Sun Sep 27 18:19:18 2009 +0000
+++ b/sys/ddb/files.ddb Sun Sep 27 18:24:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.ddb,v 1.4 2009/03/31 15:50:45 reinoud Exp $
+# $NetBSD: files.ddb,v 1.5 2009/09/27 18:24:23 bsh Exp $
#
# DDB options
@@ -8,7 +8,7 @@
DDB_BREAK_CHAR DDB_KEYCODE SYMTAB_SPACE
DDB_COMMANDONENTER
-file ddb/db_access.c ddb
+file ddb/db_access.c ddb | kgdb
file ddb/db_aout.c ddb
file ddb/db_break.c ddb
file ddb/db_command.c ddb
Home |
Main Index |
Thread Index |
Old Index