Back-out previous revision. For now I can use _ddb() variants of stack(9) KPI,
as I use it for debugging only. Once someone will need it for more production features, the change should be reconsider. Requested by: rwatson
This commit is contained in:
parent
d4d7411910
commit
056014462f
@ -924,14 +924,11 @@ int
|
||||
linker_search_symbol_name(caddr_t value, char *buf, u_int buflen,
|
||||
long *offset)
|
||||
{
|
||||
int error, locked;
|
||||
int error;
|
||||
|
||||
locked = KLD_LOCKED();
|
||||
if (!locked)
|
||||
KLD_LOCK();
|
||||
KLD_LOCK();
|
||||
error = linker_debug_search_symbol_name(value, buf, buflen, offset);
|
||||
if (!locked)
|
||||
KLD_UNLOCK();
|
||||
KLD_UNLOCK();
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user