summaryrefslogtreecommitdiff
path: root/sys/ddb/db_aout.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-10 13:58:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-10 13:58:45 +0000
commit2319b3532d3706171dd28861d0758c455fbdf400 (patch)
treed8cfcfc48ae6df645ceb1eb4502908579f55a106 /sys/ddb/db_aout.c
parent7afb6a8263f1352e0e6504a2b01051ebee6fcdd4 (diff)
do dynamic symtab allocattion.
Diffstat (limited to 'sys/ddb/db_aout.c')
-rw-r--r--sys/ddb/db_aout.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/ddb/db_aout.c b/sys/ddb/db_aout.c
index 667f62f0bb9..edba6dc76fe 100644
--- a/sys/ddb/db_aout.c
+++ b/sys/ddb/db_aout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_aout.c,v 1.7 1996/05/05 12:23:06 mickey Exp $ */
+/* $OpenBSD: db_aout.c,v 1.8 1996/05/10 13:58:43 mickey Exp $ */
/* $NetBSD: db_aout.c,v 1.14 1996/02/27 20:54:43 gwr Exp $ */
/*
@@ -139,14 +139,14 @@ X_db_sym_init(symtab, esymtab, name)
size_t
X_db_nsyms(stab)
- db_symtab_t *stab;
+ db_symtab_t stab;
{
return (struct nlist *)stab->end - (struct nlist *)stab->start;
}
db_sym_t
X_db_isym(stab, i)
- db_symtab_t *stab;
+ db_symtab_t stab;
size_t i;
{
if (i >= X_db_nsyms(stab))
@@ -157,7 +157,7 @@ X_db_isym(stab, i)
db_sym_t
X_db_lookup(stab, symstr)
- db_symtab_t *stab;
+ db_symtab_t stab;
char * symstr;
{
register struct nlist *sp, *ep;
@@ -180,7 +180,7 @@ X_db_lookup(stab, symstr)
db_sym_t
X_db_search_symbol(symtab, off, strategy, diffp)
- db_symtab_t * symtab;
+ db_symtab_t symtab;
register
db_addr_t off;
db_strategy_t strategy;
@@ -249,7 +249,7 @@ X_db_symbol_values(sym, namep, valuep)
boolean_t
X_db_line_at_pc(symtab, cursym, filename, linenum, off)
- db_symtab_t * symtab;
+ db_symtab_t symtab;
db_sym_t cursym;
char **filename;
int *linenum;
@@ -313,7 +313,7 @@ X_db_line_at_pc(symtab, cursym, filename, linenum, off)
boolean_t
X_db_sym_numargs(symtab, cursym, nargp, argnamep)
- db_symtab_t * symtab;
+ db_symtab_t symtab;
db_sym_t cursym;
int *nargp;
char **argnamep;
@@ -360,10 +360,14 @@ ddb_init()
extern char *esym;
extern int end;
+ db_sym_init();
+
if (esym > (char *)&end) {
X_db_sym_init((int *)&end, esym, "bsd");
}
#else
+ db_sym_init();
+
X_db_sym_init (db_symtab, 0, "bsd");
#endif
}