> This looks like a bug in calling functions that return a structure > by value. All the functions that return structures FAIL: > > print one + two > $1 = {x = 2147479536, y = 1099239424} > (gdb) FAIL: gdb.c++/userdef.exp: print one + two > > The functions that return a scalar PASS: > > print one && two > $6 = 1 > (gdb) PASS: gdb.c++/userdef.exp: print one && two > > Look at the results in gdb.base/call-rt-st.exp and gdb.base/structs.exp. > I bet there is a lot of juicy log info there. Yep! The attached fixes it. Looks like PPC/NetBSD's custom GCC has a fixed struct return (I'm pretty sure that mainline GCC is broken). The old code, for reasons I'm not sure, was failing to detect NetBSD and hence was failing ot set it. Andrew