diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-18 21:57:32 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:17 +0200 |
commit | f08d1e37cc4e72f93b1fe08b19012869f0370ecc (patch) | |
tree | d128b67f91d5c3699949b66d465c3e8b236edaf5 /kern | |
parent | 4df0f89aa4f32b12aab06d81d6ce91a12a64553e (diff) |
2008-07-18 Andrei Barbu <andrei@0xab.com>
* (ddb/db_sym.h): Add _DDB_DB_SYM_H_ header protection.
(db_find_sym_and_offset, db_find_xtrn_sym_and_offset,
db_find_task_sym_and_offset, db_find_xtrn_task_sym_and_offset): Call
db_free_symbol.
(db_free_symbol): New declaration.
(db_sym_switch): New `free_symbol' member.
(X_db_free_symbol): New macro.
* ddb/db_sym.c (db_value_of_name, db_lookup, db_name_is_ambiguous,
db_search_task_symbol, db_search_in_task_symbol, db_task_printsym):
Call db_free_symbol.
(db_free_symbol): New function.
(dummy_db_free_symbol): New empty function.
(x_db): Initialize `free_symbol' memberi with dummy_db_free_symbol.
* i386/i386/db_trace.c (db_i386_stack_trace): Call db_free_symbol.
* kern/lock_mon.c (print_lock_info): Likewise.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/lock_mon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/lock_mon.c b/kern/lock_mon.c index a9a3989..0d69ac1 100644 --- a/kern/lock_mon.c +++ b/kern/lock_mon.c @@ -281,7 +281,7 @@ struct lock_info *li; li->masked, (li->masked*100)/sum, li->stack, li->stack/sum, li->time, li->time/sum); - db_search_symbol(li->lock, 0, &off); + db_free_symbol(db_search_symbol(li->lock, 0, &off)); if (off < 1024) db_printsym(li->lock, 0); else { |