-/* $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 $ */
/*
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
+#include <sys/exec_aout.h>
#include <machine/db_machdep.h> /* data types */
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.
*/
-/* $OpenBSD: db_extern.h,v 1.6 1996/09/27 14:42:32 briggs Exp $ */
+/* $OpenBSD: db_extern.h,v 1.7 1997/02/07 06:18:46 mickey Exp $ */
/* $NetBSD: db_extern.h,v 1.1 1996/02/05 01:57:00 christos Exp $ */
/*
boolean_t X_db_line_at_pc __P((db_symtab_t, db_sym_t, char **,
int *, db_expr_t));
int X_db_sym_numargs __P((db_symtab_t, db_sym_t, int *, char **));
+struct exec;
+void X_db_stub_xh __P((db_symtab_t, struct exec *));
void ddb_init __P((void));
/* db_examine.c */
-/* $OpenBSD: db_sym.c,v 1.16 1996/08/23 19:53:48 niklas Exp $ */
+/* $OpenBSD: db_sym.c,v 1.17 1997/02/07 06:18:48 mickey Exp $ */
/* $NetBSD: db_sym.c,v 1.12 1996/02/05 01:57:15 christos Exp $ */
/*
new->start = start;
new->end = end;
- new->rend = rend;
new->name = name;
- new->private = ref;
+ new->rstart = ref;
+ new->private = rend;
new->id = db_nsymtabs;
TAILQ_INSERT_TAIL(&db_symtabs, new, list);
{
return X_db_sym_numargs(db_last_symtab, sym, nargp, argnames);
}
+
+void
+db_stub_xh(sym, xh)
+ db_symtab_t sym;
+ struct exec *xh;
+{
+ X_db_stub_xh(sym, xh);
+}