From: Johnny Billquist <bqt@softjar.se>
Subject: Re: Debugging Programs under RT-11
Date: Tue, 04 Jun 2013 20:57:27 +0200 [thread overview]
Message-ID: <koldas$mj8$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <51ad5842.10986105@nntp.aioe.org>
On 2013-06-04 05:03, paramucho wrote:
> On Fri, 31 May 2013 19:44:58 +0200, Johnny Billquist <bqt@softjar.se>
> wrote:
>>>> The capabilities of the symbolic debugger far surpass all of this. I
>>>> suspect it is not possible to get that capability under RT-11. Oh well.
>>>
>>> Does the RSX symbolic debugger support an instruction history?
>>
>> No.
>
> Oh well :-)
Yeah. There is a reason I don't use it that much. While it has some cool
abilities, it lacks some of the more simple features that I actually use
more often.
>> My modified decus debugger do support watchpoints, tracepoints, history,
>> profiling and some other nifty stuff. However, it does not handle
>> overlays any better than plain ODT.
>
> I had a look at that, and the other debuggers on your website. A lot
> of good code. One of them has a very clean PDP-11 instruction emulator
> to save time context switching back for single-step execution. I
> didn't manage to work out how address traps were being handled though.
I can go back and look at it if you really want to know. It's been a
while since I played with it.
> Looking at the trace-trap in the debuggers stuff I'm beginning to
> think that I made my RUST/SJ implementation more complicated than it
> needed to be. I often seemed to end up with wierd situations with
> trace traps, but perhaps that's because the debugger runs in the same
> CPU mode as the trace interrupt.
>
> Apropos traps, the one trap I can't seem to intercept in RTX is stack
> errors, which unconditionally aborts a task. I guess that makes sense
> for 99.99% of applications.
RTX being your RT emulation under RSX?
Yes, bad stacks can't be handled by programs under RSX.
Both SST and AST vectors assume that the kernel will be able to push
some data on the user stack before entry. If the user stack is broken,
it just fails and aborts the task.
> I'd be interested in the RSX-specifics of how the two-program
> implementations work because I guess they represent the O/S lore on
> how to correctly manage memory management of other tasks and how you
> get the mapping information for a separate task. I'm running out of
> space in RTX for the RSX adaption (which was about 4kw) and there are
> some non-essential features that I might be able to implement using
> similiar techniques. I could use PLAS but I can't rely on that since
> it might not have been sysgen'ed into a system.
The way the DECUS debugger does it actually with PLAS. It does a send
reference call, which both pass a bit of data, and also pass a reference
to the memory, so that the debugger can inspect and modify memory on its
own.
However, you can get away without that, and just design a small protocol
between the two tasks using send and receive calls. It will be slower,
but perfectly doable.
Thus, in your actual environment, you only have a small stub service
that every operation call into, and that one in turn sends like an RPC
to the other task, who do the actual work, and then return a result
back, for which your stub waits.
But using send reference is much more efficient sometimes...
Johnny
next prev parent reply other threads:[~2013-06-04 18:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-27 14:05 Debugging Programs under RT-11 Jerome H. Fine
2013-05-27 18:50 ` glen herrmannsfeldt
2013-05-27 19:35 ` Jerome H. Fine
2013-05-27 21:23 ` Johnny Billquist
2013-05-28 2:06 ` Jerome H. Fine
2013-05-28 9:35 ` Johnny Billquist
2013-05-28 12:46 ` Jerome H. Fine
2013-05-28 14:33 ` Johnny Billquist
2013-05-28 16:56 ` Jerome H. Fine
2013-05-28 20:42 ` Johnny Billquist
2013-05-29 21:15 ` Jerome H. Fine
2013-05-30 1:29 ` Johnny Billquist
2013-05-31 16:38 ` paramucho
2013-05-31 17:44 ` Johnny Billquist
2013-06-04 3:03 ` paramucho
2013-06-04 18:57 ` Johnny Billquist [this message]
2013-06-06 14:21 ` Jerome H. Fine
2013-06-06 20:29 ` Johnny Billquist
2013-05-28 16:25 ` paramucho
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox