Use db_lookup_proc() in the DDB 'show procvm' command.

This allows processes to be identified by PID as well as a pointer address.

MFC after:	2 weeks
Sponsored by:	DARPA / AFRL
This commit is contained in:
jhb 2016-12-13 19:22:43 +00:00
parent 1c07fe6e4b
commit 6b0130d5b3

View File

@ -4309,7 +4309,7 @@ DB_SHOW_COMMAND(procvm, procvm)
struct proc *p;
if (have_addr) {
p = (struct proc *) addr;
p = db_lookup_proc(addr);
} else {
p = curproc;
}