Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* pseudo registers in the regcache
@ 2002-05-17  6:53 Richard Earnshaw
  2002-05-17  9:22 ` Andrew Cagney
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Earnshaw @ 2002-05-17  6:53 UTC (permalink / raw)
  To: gdb; +Cc: Richard.Earnshaw


Grepping through the sources for the targets that were using regcache 
entries for pseudos it turns out that in current CVS only two targets are 
using pseudos at all: sh and mc68hc11.


The sh code is known not to put its pseudos in the regcache, which only 
leaves the mc68hc11.

Looking at that code it appears that it uses the pseudos for registers 
that are really part of the memory map, so it seems like we are really 
overloading the "pseudo" name for two different things.

How about renaming the 68k stuff as being MEMORY_REGS and reserving the 
PSEUDO concept for what we really seem to want -- a view of a (or a 
combination of) physical (or memory) register(s)?

That would, I think allow us to say that pseudos are never in the regcache 
and it should simplify many bits of code significantly.

Oh, and I'd make NUM_REGS (the define) be NUM_PHYS_REGS + NUM_MEMORY_REGS 
so that gdb-core sees these as a single resource (ie the separation is 
below gdb-core).

Thoughts?

R.


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

end of thread, other threads:[~2002-05-18 18:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-17  6:53 pseudo registers in the regcache Richard Earnshaw
2002-05-17  9:22 ` Andrew Cagney
2002-05-17  9:31   ` Richard Earnshaw
2002-05-17  9:47     ` Andrew Cagney
2002-05-18  3:49       ` Richard Earnshaw
2002-05-18 11:08         ` Andrew Cagney

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