LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* overloading existing PTRACE_GET_DEBUGREG/PTRACE_SET_DEBUGREG commands
@ 2008-04-29  8:56 Kumar Gala
  2008-05-01 23:55 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2008-04-29  8:56 UTC (permalink / raw)
  To: Paul Mackerras
  Cc: linuxppc-dev@ozlabs.org list, Anton Blanchard, Roland McGrath,
	Paralkar Anmol

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-01 23:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29  8:56 overloading existing PTRACE_GET_DEBUGREG/PTRACE_SET_DEBUGREG commands Kumar Gala
2008-05-01 23:55 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox