summaryrefslogtreecommitdiff
path: root/sys/ddb/db_aout.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-07 06:18:49 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-07 06:18:49 +0000
commit4adf5e1ea6afb967ddfa4424a937c15e091ff561 (patch)
tree12f9f805f05c243ab4fef9f26b330a8c8c4eaf23 /sys/ddb/db_aout.c
parent25ce944623192ed7381bcde92621ac9027e242a7 (diff)
necessary support for kernfs.
Diffstat (limited to 'sys/ddb/db_aout.c')
-rw-r--r--sys/ddb/db_aout.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/ddb/db_aout.c b/sys/ddb/db_aout.c
index 6fd9ea3a03d..8f9840c6cc1 100644
--- a/sys/ddb/db_aout.c
+++ b/sys/ddb/db_aout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_aout.c,v 1.11 1996/08/23 19:53:46 niklas Exp $ */
+/* $OpenBSD: db_aout.c,v 1.12 1997/02/07 06:18:44 mickey Exp $ */
/* $NetBSD: db_aout.c,v 1.14 1996/02/27 20:54:43 gwr Exp $ */
/*
@@ -31,6 +31,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
+#include <sys/exec_aout.h>
#include <machine/db_machdep.h> /* data types */
@@ -351,6 +352,19 @@ X_db_sym_numargs(symtab, cursym, nargp, argnamep)
return FALSE;
}
+void
+X_db_stub_xh(sym, xh)
+ db_symtab_t sym;
+ struct exec *xh;
+{
+ extern char kernel_text[];
+
+ bzero(xh, sizeof(*xh));
+ xh->a_midmag = htonl((((0 << 10) | MID_ZERO) << 16) | ZMAGIC);
+ xh->a_syms = *sym->rstart;
+ xh->a_entry = (u_long)kernel_text;
+}
+
/*
* Initialization routine for a.out files.
*/