>> Is what gdb prints for ptype stable across different gdb versions (except >> for whitespace that you canonicalize)? If yes, this looks good to me.
Mark> Yes, I believe it is (I tested against gdb git master and gdb 7.6.50). Mark> It tries to print the expression as a canonical C type, so it should be Mark> stable. GDB itself contains similar tests, but for pregenerated .S files Mark> or synthetic generated DWARF. This just extends it to make sure gcc and Mark> gdb agree on the produced/consumed debuginfo. I think it should be reasonably reliable. Something like this (but for value-printing) is already done in the libstdc++ test suite. Tom