summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_sym.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-27 19:00:49 +0000
committerdillon <dillon@FreeBSD.org>1999-01-27 19:00:49 +0000
commit153f359f37030efa351afc646b7c20ec86c43ec3 (patch)
tree7b67d66dc20193bb5e4d5f537705271a8e01d2d7 /sys/ddb/db_sym.h
parenta6a88d5c196f23f81a6ab6cd6c895263496f9c8d (diff)
downloadFreeBSD-src-153f359f37030efa351afc646b7c20ec86c43ec3.zip
FreeBSD-src-153f359f37030efa351afc646b7c20ec86c43ec3.tar.gz
Changes to support -Wall, -Wcast-qual. Had to make physical code changes
in db_lookup() to avoid the *cp = 0 / *cp = ':' combo ( temporary nul-terminate-then-restore-original ) on a const char * string.
Diffstat (limited to 'sys/ddb/db_sym.h')
-rw-r--r--sys/ddb/db_sym.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h
index 2ea2714..c501738 100644
--- a/sys/ddb/db_sym.h
+++ b/sys/ddb/db_sym.h
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_sym.h,v 1.14 1997/06/30 23:54:49 bde Exp $
+ * $Id: db_sym.h,v 1.15 1998/06/28 00:55:01 dfr Exp $
*/
#ifndef _DDB_DB_SYM_H_
@@ -73,7 +73,7 @@ void db_add_symbol_table __P((char *, char *, char *, char *));
db_sym_t db_search_symbol __P((db_addr_t, db_strategy_t, db_expr_t *));
/* find symbol given value */
-void db_symbol_values __P((db_sym_t, char **, db_expr_t *));
+void db_symbol_values __P((db_sym_t, const char **, db_expr_t *));
/* return name and value of symbol */
#define db_find_sym_and_offset(val,namep,offp) \
@@ -95,14 +95,14 @@ int db_sym_numargs __P((db_sym_t, int *, char **));
boolean_t X_db_line_at_pc __P((db_symtab_t *symtab, db_sym_t cursym,
char **filename, int *linenum,
db_expr_t off));
-db_sym_t X_db_lookup __P((db_symtab_t *stab, char *symstr));
+db_sym_t X_db_lookup __P((db_symtab_t *stab, const char *symstr));
db_sym_t X_db_search_symbol __P((db_symtab_t *symtab, db_addr_t off,
db_strategy_t strategy,
db_expr_t *diffp));
int X_db_sym_numargs __P((db_symtab_t *, db_sym_t, int *,
char **));
void X_db_symbol_values __P((db_symtab_t *symtab,
- db_sym_t sym, char **namep,
+ db_sym_t sym, const char **namep,
db_expr_t *valuep));
#endif /* !_DDB_DB_SYM_H_ */
OpenPOWER on IntegriCloud