'View full array of pointer in DDD

Say I defined an int pointer variable and reallocated 10 int memory cells to it and filled it with data:

q=(int*)realloc(q,10*sizeof(int));
for (i=0;i<10;i++)
{
*(q+i)=i;
}

Is there a way in DDD to display the variable and be able to see all the data (all 10 numbers)?

I only managed to see 1 number by choosing "display *q[i]".



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source