diff options
author | dg <dg@FreeBSD.org> | 1994-01-03 07:54:10 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-01-03 07:54:10 +0000 |
commit | 17916ffcbb0b38dff696ae09db5821a833224036 (patch) | |
tree | d24eb1132beba030b8e4d69d09e3bb0bda50fb8b /sys/ddb/db_sym.c | |
parent | 44196ffe13e5376b5162406170953832ebc8a828 (diff) | |
download | FreeBSD-src-17916ffcbb0b38dff696ae09db5821a833224036.zip FreeBSD-src-17916ffcbb0b38dff696ae09db5821a833224036.tar.gz |
Patches from John Brezak (necessary for the syscall->trapframe conversion
as well as add additional functionality):
Print symbolic args and line no's in stack traces.
Diffstat (limited to 'sys/ddb/db_sym.c')
-rw-r--r-- | sys/ddb/db_sym.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 74c96e3..af22a97 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_sym.c,v 1.2 1993/10/16 16:47:25 rgrimes Exp $ + * $Id: db_sym.c,v 1.3 1993/11/25 01:30:12 wollman Exp $ */ /* @@ -47,7 +47,9 @@ extern void X_db_symbol_values(); /* * Multiple symbol tables */ +#ifndef MAXNOSYMTABS #define MAXNOSYMTABS 3 /* mach, ux, emulator */ +#endif db_symtab_t db_symtabs[MAXNOSYMTABS] = {{0,},}; int db_nsymtab = 0; @@ -311,7 +313,6 @@ db_printsym(off, strategy) } } - boolean_t db_line_at_pc( sym, filename, linenum, pc) int sym; @@ -321,3 +322,12 @@ db_line_at_pc( sym, filename, linenum, pc) { return X_db_line_at_pc( db_last_symtab, sym, filename, linenum, pc); } + +int +db_sym_numargs(sym, nargp, argnames) + db_sym_t sym; + int *nargp; + char **argnames; +{ + return X_db_sym_numargs(db_last_symtab, sym, nargp, argnames); +} |