This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testcases: Fix assorted problems related to powerpc
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 29 Sep 2010 00:18:29 -0300
- Subject: Re: [PATCH] testcases: Fix assorted problems related to powerpc
- References: <1285689421.12736.138.camel@gargoyle> <201009281708.26790.pedro@codesourcery.com>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
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.
>