🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #4471

Re: dbx headache

#4471
From: Robert Corbett
Date: Sat, 23 Jan 1993 03:18
37 lines
1632 bytes
MATOVICM@QUCDN.QueensU.CA () writes:
> I'm fed up with dbx (SGI, IRIX 3.3.2, IRIX 4.0.1) when debugging fortran
> programs. Examining arrays is pain in a neck unless you deal with the
> size a(3,3) or similar. Is there any way to say e.g.
>   print a from 155 to 175 (and possibly to specify the increment).
> Or, is there any other UNIX (public domain) debugger that can handle
> arrays frinedly?

I can't help you for SGI equipment, but the dbx for SPARCstations
provided in SPARCworks 2.0.1 appears to do exactly what you want.

The manual *Debugging a Program* states

Syntax for FORTRAN Array Slicing and Striding

     For each dimension of an array, the full syntax to the
     print command to slice the array is:

	 (debugger) print arr (exp1:exp2:exp3)

	 where:

	     exp1 = start_of_slice
	     exp2 = end_of_slice
	     exp3 = length_of_stride
		    (the number of elements skipped is exp3 - 1)

    For an n-dimensional slice, separate the definition of each
    slice with a comma:

	(debugger) print arr (exp1:exp2:exp3, exp1:exp2:exp3,...)

The manual goes on to explain how the elements are laid out in storage,
and convenient shorthand notations.

					Yours truly,
					Robert Corbett
Technical Details
Message-ID: <lm1e79INNbao@exodus.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!exodus.Eng.Sun.COM!lupa!corbett
References: <93021.234529MATOVICM@QUCDN.QueensU.CA>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!exodus.Eng.Sun.COM!lupa!corbett
From: corbett@lupa.Eng.Sun.COM (Robert Corbett)
Newsgroups: comp.lang.fortran
Subject: Re: dbx headache
Date: 23 Jan 1993 03:18:01 GMT
Organization: Sun
Lines: 37
Message-ID: <lm1e79INNbao@exodus.Eng.Sun.COM>
References: <93021.234529MATOVICM@QUCDN.QueensU.CA>
NNTP-Posting-Host: lupa