From 047fa82dd05146cf34e7c0f9fe16e2f4a5fa741f Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 27 Dec 1999 07:14:58 +0000 Subject: Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb juggling and is module aware. Yes, this means that kvm_nlist(3) will find symbols in loaded modules. The emulation of the nlist struct is pretty crude but seems to work well enough for all the users in the tree that I found. --- lib/libkvm/kvm_sparc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libkvm/kvm_sparc.c') diff --git a/lib/libkvm/kvm_sparc.c b/lib/libkvm/kvm_sparc.c index a7b9594..7a538d8 100644 --- a/lib/libkvm/kvm_sparc.c +++ b/lib/libkvm/kvm_sparc.c @@ -36,7 +36,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) +#if 0 static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93"; +#else +static const char rcsid[] = + "$FreeBSD$"; +#endif #endif /* LIBC_SCCS and not lint */ /* @@ -56,7 +61,6 @@ static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93"; #include #include -#include #include "kvm_private.h" -- cgit v1.1