Subject: Re: lwp_emuldata
To: Emmanuel Dreyfus <manu@NetBSD.org>
From: Kamal R Prasad <kamalrpr@in.ibm.com>
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 
emuldata,
> 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 
works
>on MacOS X: it takes the traced task kernel port, and then it sends 
messages 
>to it to read memory, for instance.

>Within a task, each thread also has a kernel port, which is used to 
perform
>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 
and 
>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?

thanks
-kamal

 

-- 
Emmanuel Dreyfus
manu@netbsd.org