From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,1b0e337c9ace3fea X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.121.168 with SMTP id ll8mr425751pab.38.1370372253565; Tue, 04 Jun 2013 11:57:33 -0700 (PDT) Path: bp1ni86pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newsfeed1.swip.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!.POSTED!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Debugging Programs under RT-11 Date: Tue, 04 Jun 2013 20:57:27 +0200 Organization: Update Computer Club Message-ID: References: <51a3b6dd$0$32111$14726298@news.sunsite.dk> <51a411a5$0$32104$14726298@news.sunsite.dk> <51a4a750$0$32105$14726298@news.sunsite.dk> <51a4e2e9$0$32117$14726298@news.sunsite.dk> <51a6709f$0$32111$14726298@news.sunsite.dk> <51a8c230.48580536@nntp.aioe.org> <51ad5842.10986105@nntp.aioe.org> NNTP-Posting-Host: 74.125.57.36 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1370372253 23144 74.125.57.36 (4 Jun 2013 18:57:33 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 4 Jun 2013 18:57:33 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: <51ad5842.10986105@nntp.aioe.org> X-Received-Bytes: 4699 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-06-04 05:03, paramucho wrote: > On Fri, 31 May 2013 19:44:58 +0200, Johnny Billquist > 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