diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-16 09:53:06 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-17 21:42:33 +0100 |
commit | 1b332541d76de1443b72222779e7155aa2933ab2 (patch) | |
tree | d03b57c9f3041c9b2686af92ce58cd3378a343c7 | |
parent | 7f0d869d3defdebf01086a371752d13d5351a8f4 (diff) |
ddb/db_sym.c: remove register qualifiers
* ddb/db_sym.c: Remove register qualifiers.
-rw-r--r-- | ddb/db_sym.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/ddb/db_sym.c b/ddb/db_sym.c index 5c5f700..98f265e 100644 --- a/ddb/db_sym.c +++ b/ddb/db_sym.c @@ -64,7 +64,7 @@ db_add_symbol_table(type, start, end, name, ref, map_pointer) char *ref; char *map_pointer; { - register db_symtab_t *st; + db_symtab_t *st; extern vm_map_t kernel_map; if (db_nsymtab >= MAXNOSYMTABS) @@ -92,10 +92,10 @@ db_add_symbol_table(type, start, end, name, ref, map_pointer) static char * db_qualify(symname, symtabname) char *symname; - register char *symtabname; + char *symtabname; { static char tmp[256]; - register char *s; + char *s; s = tmp; while ((*s++ = *symtabname++)) { @@ -145,10 +145,10 @@ db_lookup(symstr) char *symstr; { db_sym_t sp; - register int i; + int i; int symtab_start = 0; int symtab_end = db_nsymtab; - register char *cp; + char *cp; /* * Look for, remove, and remember any symbol table specifier. @@ -198,8 +198,8 @@ db_sym_parse_and_lookup(func, symtab, symstr) db_symtab_t *symtab; char *symstr; { - register char *p; - register int n; + char *p; + int n; int n_name; int line_number; char *file_name = 0; @@ -268,8 +268,7 @@ boolean_t db_name_is_ambiguous(sym_name) char *sym_name; { - register int i; - register + int i; boolean_t found_once = FALSE; if (!db_qualify_ambiguous_names) @@ -306,7 +305,7 @@ db_sym_t db_search_in_task_symbol(); */ db_sym_t db_search_task_symbol(val, strategy, offp, task) - register db_addr_t val; + db_addr_t val; db_strategy_t strategy; db_addr_t *offp; /* better be unsigned */ task_t task; @@ -335,14 +334,14 @@ db_search_task_symbol(val, strategy, offp, task) db_sym_t db_search_in_task_symbol(val, strategy, offp, task) - register db_addr_t val; + db_addr_t val; db_strategy_t strategy; db_addr_t *offp; task_t task; { - register vm_size_t diff; + vm_size_t diff; vm_size_t newdiff; - register int i; + int i; db_symtab_t *sp; db_sym_t ret = DB_SYM_NULL, sym; vm_map_t map_for_val; |