This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/15770] "Info Variables" returns bad results for typedef array
- From: "b_smith at aerosimulation dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 23 Jul 2013 11:53:20 +0000
- Subject: [Bug c++/15770] "Info Variables" returns bad results for typedef array
- Auto-submitted: auto-generated
- References: <bug-15770-4717 at http dot sourceware dot org/bugzilla/>
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.