This is the mail archive of the gdb@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: RFC: Additional testsuite alternative



Source file two.cc:
===
struct OneStruct {
  int simple;
};
struct OneStruct StrOne;
const struct OneStruct *ConstStrOnePtr;

int FunctionWithPtrs (const struct OneStruct *one, const int *two)
{
  return 0;
}

int
main ()
{
  return 0;
}
The nice thing about GCC's framework is that it is a single C file. Is the same possible here? Comments would indicate where to set breakpoints and what values to print.

The test then involves running the program, and for each breakpoint, printing and checking the output.

(How would this .x file handle regular expressions? That is the one thing I never figured out with the GCC framework.)

enjoy,
Andrew



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