This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: problem seeing arrays in structs
- From: Keith Seitz <keiths at redhat dot com>
- To: Lester Ingber <ingber at ingber dot com>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Mon, 10 May 2004 10:14:56 -0700
- Subject: Re: problem seeing arrays in structs
- References: <20040510141426.GA3128@ingber.com>
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