This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug c++/15770] "Info Variables" returns bad results for typedef array


http://sourceware.org/bugzilla/show_bug.cgi?id=15770

--- Comment #1 from b_smith at aerosimulation dot com ---
We have further been able to test the issue and establish that this will work
with any typedef assignment, not just float as listed in the example.
Additionally, it seems that the index only breaks when the initialized array
has the same count of elements as the struct's array. 

So, the following is an example program that also breaks the "info variables" +
"Ptype shm_rec_t" sequence results:

typedef int int32;

const int32 hsi_range[] = {2, 5, 10};  //note: {0, 2, 5, 10} would return valid
results

typedef struct {
   int32 i32ara[3];
   int a;
   char c;
} shm_rec_t;

shm_rec_t shm;

int main()
{
   return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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