mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Back out previous work-around for "vmstat -i" failing on ELF
kernels. A better fix is now committed to "src/lib/libc/gen/nlist.c" and "src/usr.sbin/kvm_mkdb/nlist.c".
This commit is contained in:
parent
a150a878d5
commit
b5e7d1133b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40690
|
@ -909,7 +909,7 @@ kread(nlx, addr, size)
|
|||
{
|
||||
char *sym;
|
||||
|
||||
if (namelist[nlx].n_value == 0) {
|
||||
if (namelist[nlx].n_type == 0 || namelist[nlx].n_value == 0) {
|
||||
sym = namelist[nlx].n_name;
|
||||
if (*sym == '_')
|
||||
++sym;
|
||||
|
|
Loading…
Reference in a new issue