This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [patch/rfc] Test struct0


Hello,

This adds a test for:

struct foo0 { };

to the structs.exp testcase (I'm assuming that this is legal ISO-C), it passes on PPC with stabs with:

(gdb) PASS: gdb.base/structs.exp: ptype foo1; structs-tc
p/c fun0()
$1 = {<No data fields>}

Tt was intended for completness, however with a dwarf2 compiler:

amd64$ gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-24)

(gdb) PASS: gdb.base/structs.exp: ptype foo1; structs-tc
p/c fun0()
$1 = <incomplete type>

I guess I should file a bug report and kfail it?

I'm dropping this patch - it isn't valid C. If someone want's to come up with a C++ equivalent, feel free.


Andrew



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