ddd
[Top][All Lists]
Advanced

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

Re: [Q] Double's Arrays!


From: Dieter Braisch
Subject: Re: [Q] Double's Arrays!
Date: Wed, 9 Jan 2002 16:40:33 +0100

Hi,

type "address@hidden" and it will work.
It means: display the array from the index 0 with the lenght of 7.
This method is discribed in the DDD Manual on page 7 within a beautyfull
example.

Cheers
Dieter

-----Ursprüngliche Nachricht-----
Von: Gerardo Guerrero [mailto:address@hidden
Gesendet: Mittwoch, 9. Januar 2002 16:11
An: address@hidden
Betreff: [Q] Double's Arrays! 


Hello!!!

I am new in the list... I am working with gdb/ddd in a personal project,

for this I work in gnu compiler g77 and gcc...

I have a lot of double's arrays in my programs... and they are 
super-neccesary... how can i print the value of the arrays???

The code is, for example...

double *array;
array = (double *)malloc(sizeof(double)*7);

for(i =0; i < 7; i++) {
    array[i] = 5;
}

in order to print the array I have to write in ddd

graph display address@hidden

but the result is...

 *{<data variable, no debug info>} (void *) 0x8078564 @ 7 = {0,
1075052544,
  0, 1075052544, 0, 1075052544, 0}

not 5, 5, 5, 5, 5, 5, 5

can you help me please???

Thanks in advance...
Gerardo


_______________________________________________
Ddd mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/ddd



reply via email to

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