From owner-freebsd-hackers Thu Feb 6 3:53:17 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2684237B401 for ; Thu, 6 Feb 2003 03:53:16 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE84D43F93 for ; Thu, 6 Feb 2003 03:53:14 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id DC8EF536E; Thu, 6 Feb 2003 12:53:11 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Andrey Simonenko Cc: freebsd-hackers@freebsd.org Subject: Re: Help with understanding process state, context switching and signals From: Dag-Erling Smorgrav Date: Thu, 06 Feb 2003 12:53:10 +0100 In-Reply-To: <20030206112416.GA133@pm514-9.comsys.ntu-kpi.kiev.ua> (Andrey Simonenko's message of "Thu, 6 Feb 2003 13:24:16 +0200") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030206112416.GA133@pm514-9.comsys.ntu-kpi.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrey Simonenko writes: > In short: I need to stop (suspend) some process from the kernel, when > that process is in user mode and get information about its general-purpose > registers, its VM structures, etc. Have you looked at ptrace(2)? That's what gdb(1) uses. You can get additional information about memory maps etc. from procfs. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message