This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem seeing arrays in structs


On Mon, 2004-05-10 at 07:14, Lester Ingber wrote:
> For example, I might have a struct
>   typedef struct {
>     double *myarray;
>  } MYSTRUCT;

myarray is not an array. You've explicitly defined it as a pointer. In
the debug information that gcc outputs, it describes myarray as a
pointer, so that is what it knows.

Yes, technically, it doesn't matter, but the debugger doesn't know any
better. 

Unfortunately, I know of no way to deal with this situation right now.
We do not have a "view as" option for the watch window, and the variable
cannot be cast.

The only thing I can think of doing is opening a memory window to view
the actual array. (And there are bugs with this -- you'll have to open
it manually: it doesn't like the idea of opening a struct member).

Sorry,
Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]