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/testsuite] gdb.c++/classes.exp: add another ptype pattern


On Wed, Jul 02, 2003 at 11:39:19AM -0400, Michael Elizabeth Chastain wrote:
> This patch adds a pattern to a ptype test in classes.exp.
> 
> Here is the story.  The class is:
> 
>   class ClassWithEnum {
>   public:
>     enum PrivEnum { red, green, blue, yellow = 42 };
>     PrivEnum priv_enum;
>     int x;
>   };

> My concern is gcc 3.3 -gstabs+.  gdb is printing the right output, but
> there is no arm in the test case for it, so it FAILed.  This patch adds
> an arm so that this output will now PASS.

Could you try adding the .* from the following (kfail) pattern instead? 
I.E. right after "int x;".

We'll have to revisit this someday.  Eventually, I want that KFAIL'ing
pattern to be the correct output.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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