This is the mail archive of the gdb-patches@sourceware.org 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] testcases: Fix assorted problems related to powerpc


Thanks Pedro.

That patch does fix the problem. I'll send an updated patch without
fixes to watch-read.exp.

Luis

On Tue, 2010-09-28 at 17:08 +0100, Pedro Alves wrote:
> On Tuesday 28 September 2010 16:57:01, Luis Machado wrote:
> > gdb.base/watch-read.exp tries to create both a HW write watchpoint and a
> > HW read watchpoint, but since POWER server processors only support a
> > single HW watchpoint, this doesn't work right. It's strange, though,
> > that GDB actually creates two HW watches for ppc, but the last one
> > overrides the read/write flags of the previous one and thus we miss
> > triggers. I've used an awatch instead, though i'd have to check if GDB
> > is doing something wrong and if we could make this testcase pass without
> > any changes. The results with AWATCH are pretty much the same as with
> > RWATCH + WATCH.
> > 
> 
> GDB is doing something wrong, and it's possible to make ppc pass this
> testcase without any (test) changes.  I think the patch below is what
> I used to test on ppc when I wrote that test
> (<http://sourceware.org/ml/gdb-patches/2010-02/msg00521.html>), and
> the test passed with it.
> 



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