From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: emachado@linux.vnet.ibm.com (Edjunior Barbosa Machado)
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix hardware watchpoints on PowerPC servers
Date: Mon, 13 May 2013 13:19:00 -0000 [thread overview]
Message-ID: <201305131319.r4DDJKnN029814@d06av02.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <1368426484-32623-1-git-send-email-emachado@linux.vnet.ibm.com> from "Edjunior Barbosa Machado" at May 13, 2013 03:28:04 AM
Edjunior Machado wrote:
> initially developed only for bookE (embedded processors), the new ptrace
> interface is now available for Power server processors too [1].
>
> This patch fixes the insertion of hardware watchpoints on Power servers
> using this new interface available on kernel 3.7 and newer (currently, the
> region should be aligned to 8 bytes, which is also the max length). It reduces
> the number of unexpected failures in gdb testsuite in 40 failures (ppc64
> running kernel 3.8).
So the kernel now reports it supports PPC_DEBUG_FEATURE_DATA_BP_RANGE,
but then rejects any attempt to set a range BP of more than 8 bytes?
And there's no way to check for this ahead of time except for checking
the BookE hwcaps bits? That seems unfortunate ...
But I guess if that's the way the kernel interface is now, we'll have to
add that check.
> * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
> region is ok for a hardware watchpoint using the new ptrace interface
> on Power servers.
This is OK.
As noted by Luis, it would be good to rename the "booke" terminology,
maybe using something like "have_ptrace_hwdebug" instead of
have_ptrace_booke_interface. But that should be a separate patch.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2013-05-13 13:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 6:29 Edjunior Barbosa Machado
2013-05-13 7:08 ` Luis Machado
2013-05-13 14:16 ` Edjunior Barbosa Machado
2013-05-13 13:19 ` Ulrich Weigand [this message]
2013-05-13 14:17 ` Edjunior Barbosa Machado
2013-05-17 23:09 ` Edjunior Barbosa Machado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201305131319.r4DDJKnN029814@d06av02.portsmouth.uk.ibm.com \
--to=uweigand@de.ibm.com \
--cc=emachado@linux.vnet.ibm.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox