From: Kumar Gala <galak@kernel.crashing.org>
To: Paul Mackerras <paulus@samba.org>
Cc: "linuxppc-dev@ozlabs.org list" <linuxppc-dev@ozlabs.org>,
Anton Blanchard <anton@samba.org>,
Roland McGrath <roland@redhat.com>,
Paralkar Anmol <Anmol@freescale.com>
Subject: overloading existing PTRACE_GET_DEBUGREG/PTRACE_SET_DEBUGREG commands
Date: Tue, 29 Apr 2008 03:56:31 -0500 [thread overview]
Message-ID: <30110DA2-3887-4679-9073-CC69A267E9DC@kernel.crashing.org> (raw)
It looks like when Anton added the PTRACE_GET_DEBUGREG/
PTRACE_SET_DEBUGREG he envisioned future chips having more than one
IABR/DABR.
I'm wondering what the feeling is about using the commands for
handling some of the sub-arch variants we have:
e300 (603 style machine) - adds IABR2, DABR2, IBCR (control) and DBCR
(control). We can use IABR1/2 (and DABR1/2) either as unique
addresses or for various ranges (inclusive or exclusive)
Book-e class machines can have the following registers: DBCR[0-2],
IAC1-4, DAC1-2, DVC1-2, DBSR. IACs are roughly equivalent to IABRs,
DACs are roughly equivalent to DABRs. Booke has similar ability to
the e300 to do inclusive, exclusive ranges as well as some other
features.
My question is how to handle providing access to the debug resources
we have on these other machine types. Should we just use GET_DEBUGREG/
SET_DEBUGREG and specify what the buffers look like for these specific
machine types? Is it ok to overload the commands this way? How does
this play with utrace?
Also, what functionality can GDB take advantage of today? Does it
comprehend the idea of breakpoints or watchpoints that cover a range?
- k
next reply other threads:[~2008-04-29 8:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 8:56 Kumar Gala [this message]
2008-05-01 23:55 ` overloading existing PTRACE_GET_DEBUGREG/PTRACE_SET_DEBUGREG commands Roland McGrath
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=30110DA2-3887-4679-9073-CC69A267E9DC@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=Anmol@freescale.com \
--cc=anton@samba.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=roland@redhat.com \
/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