report local symbols too.
This commit is contained in:
parent
6b01f88146
commit
0f5d35d8d1
@ -45,7 +45,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.35 2008/02/20 02:30:51 matt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.36 2008/07/22 21:18:35 christos Exp $");
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
@ -1251,11 +1251,13 @@ ksymsioctl(dev_t dev, u_long cmd, void *data, int fflag, struct lwp *l)
|
|||||||
if ((sym = findsym(str, st)) == NULL) /* from userland */
|
if ((sym = findsym(str, st)) == NULL) /* from userland */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef notdef
|
||||||
/* Skip if bad binding */
|
/* Skip if bad binding */
|
||||||
if (ELF_ST_BIND(sym->st_info) != STB_GLOBAL) {
|
if (ELF_ST_BIND(sym->st_info) != STB_GLOBAL) {
|
||||||
sym = NULL;
|
sym = NULL;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user