Subject: Re: lwp_emuldata
To: Emmanuel Dreyfus <>
From: Kamal R Prasad <>
List: tech-kern
Date: 12/11/2003 17:09:24
On Thu, Dec 11, 2003 at 09:34:15AM +0100, Martin Husemann wrote:
> But I'd like to understand what's causing this need for per-lwp 
> just out of curiosity. What emulated entitity are you mapping to LWPs, 
or how
> are LPWs exposed to the emulated userland?

>remotely perform any action the task could have done. This is how gdb 
>on MacOS X: it takes the traced task kernel port, and then it sends 
>to it to read memory, for instance.

>Within a task, each thread also has a kernel port, which is used to 
>thread specific operations. You can use that to read and write a thread's
>register, or to stop and unstop it remotely. gdb makes intesnive use of
>that, but a program can also use it internally, for instance to suspend 
>resume a given thread.

Just curious -is it possible to use gdb on Mac OS/X running on an iBook to 
do remote (symbolic)  debugging of netbsd kernel panics? ie is the 
infrastructure already in place?



Emmanuel Dreyfus