diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-08-16 10:12:39 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-08-16 10:12:39 +0000 |
commit | a10a82bebe31f475efe38b631e78451332a3fd0d (patch) | |
tree | 9fd7e0cd3d9f3298ec95c2530de6cefa45835ec0 | |
parent | 67b84ba47826a17ce352cc54299f0640c1d51bc5 (diff) |
record real symtab end.
-rw-r--r-- | sys/ddb/db_aout.c | 4 | ||||
-rw-r--r-- | sys/ddb/db_sym.c | 6 | ||||
-rw-r--r-- | sys/ddb/db_sym.h | 7 |
3 files changed, 10 insertions, 7 deletions
diff --git a/sys/ddb/db_aout.c b/sys/ddb/db_aout.c index 79f4abc76a7..7cbbb7d88cf 100644 --- a/sys/ddb/db_aout.c +++ b/sys/ddb/db_aout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_aout.c,v 1.9 1996/08/13 00:41:33 niklas Exp $ */ +/* $OpenBSD: db_aout.c,v 1.10 1996/08/16 10:12:35 mickey Exp $ */ /* $NetBSD: db_aout.c,v 1.14 1996/02/27 20:54:43 gwr Exp $ */ /* @@ -129,7 +129,7 @@ X_db_sym_init(symtab, esymtab, name) } if (db_add_symbol_table((char *)sym_start, (char *)sym_end, name, - (char *)symtab) != -1) { + (char *)symtab, esymtab) != -1) { #ifndef SYMTAB_SPACE db_printf("[ preserving %d bytes of %s symbol table ]\n", esymtab - (char *)symtab, name); diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 19d2ff493c2..b3b9b619baa 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_sym.c,v 1.14 1996/08/16 06:13:02 mickey Exp $ */ +/* $OpenBSD: db_sym.c,v 1.15 1996/08/16 10:12:37 mickey Exp $ */ /* $NetBSD: db_sym.c,v 1.12 1996/02/05 01:57:15 christos Exp $ */ /* @@ -61,11 +61,12 @@ db_sym_init(void) * Add symbol table, with given name, to list of symbol tables. */ int -db_add_symbol_table(start, end, name, ref) +db_add_symbol_table(start, end, name, ref, rend) char *start; char *end; char *name; char *ref; + char *rend; { db_symtab_t new = db_nsymtabs? NULL : &db_sym_kernel; @@ -75,6 +76,7 @@ db_add_symbol_table(start, end, name, ref) new->start = start; new->end = end; + new->rend = rend; new->name = name; new->private = ref; new->id = db_nsymtabs; diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h index 5fb6ffebe58..325fb546deb 100644 --- a/sys/ddb/db_sym.h +++ b/sys/ddb/db_sym.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_sym.h,v 1.8 1996/08/16 06:13:03 mickey Exp $ */ +/* $OpenBSD: db_sym.h,v 1.9 1996/08/16 10:12:38 mickey Exp $ */ /* $NetBSD: db_sym.h,v 1.7 1996/02/05 01:57:16 christos Exp $ */ /* @@ -44,7 +44,8 @@ typedef struct db_symtab { char *name; /* symtab name */ u_int id; /* id */ char *start; /* symtab location */ - char *end; + char *end; /* end of symtab */ + char *rend; /* real end (as it passed) */ char *private; /* optional machdep pointer */ } *db_symtab_t; @@ -80,7 +81,7 @@ extern boolean_t db_qualify_ambiguous_names; * Functions exported by the symtable module */ void db_sym_init __P((void)); -int db_add_symbol_table __P((char *, char *, char *, char *)); +int db_add_symbol_table __P((char *, char *, char *, char *, char *)); /* extend the list of symbol tables */ void db_del_symbol_table __P((char *)); |