tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: ian () stams ! strath ! ac ! uk (Ian Thurlbeck)
To: tru64-unix-managers
Subject: DEC Pascal Debugging Information
Date: Tue, 13 Jun 1995 13:45:03 +0000	[thread overview]
Message-ID: <96075320706500.tru64-unix-managers.marc@archive.invalid> (raw)


Hi

I have a problem with debugging DEC Pascal 5.2 on a DEC Alpha 200 4/233
running OSF1 V3.0b.  The compiler does not seem to generate sensible
debugging info in certain situations. Here is a good example:

% cat test.p
program test(input,output);

const	Max	= 28;

type	ItArrayD=array[1..Max] of double;
	ItArrayI=array[1..Max] of integer;

var	age		: ItArrayI;
	meanD, varV	: ItArrayD;
	i		: integer;

begin
	for i := 1 to Max do
	begin
		age[i] := i;
		writeln(age[i]);
	end;
	writeln('end');
end.
% pc -g -C all test.p -o test
% test
         1
         2
         3
         4
         5
         6
         7
         8
         9
        10
        11
        12
        13
        14
        15
        16
        17
        18
        19
        20
        21
        22
        23
        24
        25
        26
        27
        28
end

OK, so it runs as expected.  Now lets debug it, and see what it thinks the integer
array 'age' is:

% dbx test
dbx version 3.11.6
Type 'help' for help.

(dbx) stop in main
[2] stop in TEST
(dbx) run
[2] stopped at   [TEST:13 ,0x1200018d0] 	for i := 1 to Max do
(dbx) whatis age
var AGE : array[28..32] of 86015..1;           <*** you must be joking !!
(dbx) whatis varV
var VARV : array[1..28] of double;


Is this a known bug ? Any ideas ??

Thanks

Ian

                 reply	other threads:[~1995-06-13 13:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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