RFC: Additional testsuite alternative
Andrew Cagney
ac131313@redhat.com
Thu Sep 26 13:47:00 GMT 2002
> 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
More information about the Gdb
mailing list