[comp.sys.amiga.tech] Manx SDB on tasks?

LK-KARI@FINTUVM.BITNET (Kari Sutela) (04/13/89)

In article <740LK-KARI@FINTUVM>, Kari Sutela <LK-KARI@FINTUVM.BITNET> says:
>
>For most part of the week now, I have been seriously confused about creating
>a new task.
>
>I need to create a task that *outlives* its parent and I haven't managed
>to do this in a reliable manner. What I need to do is start a task which
>will initialize a public message port and waits for messages to arrive there.
>The task should remove itself when a special 'kill yourself' message appears
>in its message port.
>

After proving in public my total Amiga novice status by posting this message,
I finally decided to THINK about my problem. And of course, the fault was that
my task was using the code and data segments of its parent (remember it will
die before the task) which will be invalid immediately when the parent exits.
Dan Riley kindly confirmed my suspicions, thanks Dan.

Dan also suggested either seglist splitting or LoadSeg(). I'll probably try
the seglist splitting method (I think Leo used this in Robotroff). Anyway,
fish disks proved their usefullness, again.

>
>BTW, has anyone found a way to use SDB on tasks?
>

This question is still valid. I know that Manx db can debug tasks, but my
Assembly literacy isn't too good. I'd much rather use SDB, but I haven't found
any hint for this in the documentation.

-   Kari Sutela
-   lk-kari@fintuvm.utu.fi (internet) OR lk-kari@fintuvm.bitnet (bitnet)

papa@pollux.usc.edu (Marco Papa) (04/15/89)

In article <742LK-KARI@FINTUVM> LK-KARI@FINTUVM.BITNET (Kari Sutela) writes:
>This question is still valid. I know that Manx db can debug tasks, but my
>Assembly literacy isn't too good. I'd much rather use SDB, but I haven't found
>any hint for this in the documentation.

With the current version you just can't do it. SDB will GURU.

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=