This is the mail archive of the gdb-patches@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] | |
In case I made the subject of this message so short that it doesn't make
any sense anymore, the purpose of this message is to add a new test in
printing a structure that contains a field whose type is anonymous. More
particularly, the purpose of this test is to verify what GDB prints for
a field that is directly inside the structure, and a field that is
one level deeper.
The test itself is pretty straightforward, but I'm asking for approval
because I want to make sure that the current behavior is indeed the expected
behavior.
See http://www.sourceware.org/ml/gdb-patches/2007-08/msg00494.html
for the inspiration for this new test.
2007-08-28 Joel Brobecker <brobecker@adacore.com>
* gdb.base/ptype.c (highest): New struct type.
(the_highest): New variable of that type.
(main): Add dummy assignment to a field of variable the_highest.
Tested on x86-linux.
OK to apply?
Thanks,
--
Joel
Attachment:
ptype-exp.diff
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |