Date: Fri, 14 Sep 2007 04:23:33 +0800 From: Buganini <buganini@gmail.com> To: freebsd-questions@freebsd.org Subject: Getting vm_map of a ptraced process Message-ID: <e5b1e8d40709131323y101bf201q8510fb5b39d83908@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I want to get vm_map of a ptraced process, but process structure is prerequisite to getting vm_map How can I get the process structure? I saw FOREACH_THREAD_IN_PROC in the source, but this need superuser's power, right? Is PT_READ from memory a good way? (seems to be dirty) Or this way? (not bad, I think, but not yet standard) http://www.e.kth.se/~lha/patches/netbsd/gdb-core/ptrace-patch any better idea is welcome, thanks -Buganini
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e5b1e8d40709131323y101bf201q8510fb5b39d83908>