Author: jhb Date: Tue Dec 13 19:22:43 2016 New Revision: 310028 URL: https://svnweb.freebsd.org/changeset/base/310028
Log: 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 Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Tue Dec 13 19:04:05 2016 (r310027) +++ head/sys/vm/vm_map.c Tue Dec 13 19:22:43 2016 (r310028) @@ -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; } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"