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:
John Baldwin 2016-12-13 19:22:43 +00:00
parent 8266737023
commit a9546a6b17

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;
}