ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can DDD display scope variables correctly? GVD doesn't, when GNAT has co


From: ddd
Subject: Can DDD display scope variables correctly? GVD doesn't, when GNAT has compiled the Ada95 source code.
Date: Sun, 20 Feb 2005 17:15:33 +0100

Hi,

I have trouble to get GVD (GNU Visual Debugger) to display scope variables
correctly if the Ada95 source code call another procedure inside that
procedure and that procedure are using variables declared and defined in the
procedure that called this procedure. For example:

procedure Scope is

    procedure A is
        X : array ( 0 .. 1 ) of Integer;
        I : Integer;

        procedure B is
            C : Integer;
            D : Integer;
        begin
            C := X(I);
            D := X(I);

            if D = 1 then
                D := 1;
            else
                D := 0;
            end if;
        end;

    begin
        I := 0;
        while I in X'Range loop
            X(I) := I;
            I := I + 1;
        end loop;

        I := 0;

        B;
    end;

begin
    A;
end;

If I set a breakpoint at the statement "D := X(I)" in GVD, it's impossible
to display the values of the scope variables "I" and "X(I)" correctly.
However, the code does execute as it should.

Does anybody know if it works to display scope variables in DDD - correctly?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]