From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,1b0e337c9ace3fea X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.234.7 with SMTP id ua7mr897811pac.32.1369875835720; Wed, 29 May 2013 18:03:55 -0700 (PDT) Path: bp1ni26117pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.szaf.org!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Mon, 27 May 2013 15:35:01 -0400 From: "Jerome H. Fine" Organization: Just Sufficient User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: Debugging Programs under RT-11 References: <51a368d5$0$32108$14726298@news.sunsite.dk> In-Reply-To: Message-ID: <51a3b6dd$0$32111$14726298@news.sunsite.dk> NNTP-Posting-Host: 206.248.171.217 X-Trace: news.sunsite.dk DXC=7glen herrmannsfeldt wrote: >>In alt.sys.pdp11 Jerome H. Fine wrote: > > >>Does anyone reading this still write code to be run >>under RT-11? When a program has a bug, what do >>you use to find the problem? For debugging programs, >>SD: seems the most efficient way, especially when a >>Mapped Monitor is being used. Alternatively, ODT >>(VDT when Multi-terminal Support is included in the >>RT-11 monitor) can be LINKed into the program. >> >> > >Not recently, but when I did write and debug under >RT-11 I never used a debugger. Well, it was pretty much >all Fortran, and there aren't so many ways to go wrong. > >Most of the time when I saw the output I knew pretty much >where the problem was. I still mostly don't use debuggers >to debug programs, though sometimes just to find where the >problem is. > When I wrote Fortran programs, I rarely used a debug. About the only time it was necessary was when something really crazy was taking place. In addition, one time I was dividing two 16 bit integer values and the Fortran compiler was doing an inline divide. The first step was to place the quotient into R1 and "SXT R0". Unfortuately, I required an UNSIGNED divide and near the end of 1999, the quotient became negative due to Y2K issues. After I realized what was causing the problem, the trivial solution was to patch the SAV file and SXT R0 became CLR R0. The reason I am asking about debug utilities such as SDHX.SYS and VDT is that they each have advantages and disadvantages, SDHX.SYS has superb displays of the registers and the instructions being executed and does NOT need to be LINKed into the SAV file - but it completely freezes EVERYTHING!!!!!!!! VDT has very poor display features along with being LINKed into the SAV file, but allows other programs to continue to execute. I don't understand why DEC never managed to combine all of the good features into one package. It should be possible and I was wondering if anyone else might be interested as well. Jerome Fine --------------090601050704020907090007 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit >glen herrmannsfeldt wrote:
>In alt.sys.pdp11 Jerome H. Fine wrote:
  
Does anyone reading this still write code to be run
under RT-11?  When a program has a bug, what do
you use to find the problem?  For debugging programs,
SD: seems the most efficient way, especially when a
Mapped Monitor is being used.  Alternatively, ODT
(VDT when Multi-terminal Support is included in the
RT-11 monitor) can be LINKed into the program.
    

Not recently, but when I did write and debug under
RT-11 I never used a debugger. Well, it was pretty much
all Fortran, and there aren't so many ways to go wrong.

Most of the time when I saw the output I knew pretty much
where the problem was. I still mostly don't use debuggers
to debug programs, though sometimes just to find where the
problem is.
When I wrote Fortran programs, I rarely used a debug.  About the
only time it was necessary was when something really crazy was
taking place.  In addition, one time I was dividing two 16 bit integer
values and the Fortran compiler was doing an inline divide.  The
first step was to place the quotient into R1 and "SXT   R0".
Unfortuately, I required an UNSIGNED divide and near the end
of 1999, the quotient became negative due to Y2K issues.  After
I realized what was causing the problem, the trivial solution was
to patch the SAV file and SXT  R0  became  CLR R0.

The reason I am asking about debug utilities such as SDHX.SYS
and VDT is that they each have advantages and disadvantages,
SDHX.SYS has superb displays of the registers and the instructions
being executed and does NOT need to be LINKed into the SAV
file - but it completely freezes EVERYTHING!!!!!!!!   VDT has
very poor display features along with being LINKed into the SAV
file, but allows other programs to continue to execute.

I don't understand why DEC never managed to combine all of the
good features into one package.  It should be possible and I was
wondering if anyone else might be interested as well.

Jerome Fine
--------------090601050704020907090007--