Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Richard.Earnshaw@arm.com, gdb@sources.redhat.com,
	Elena Zannoni <ezannoni@redhat.com>
Subject: Re: pseudo registers in the regcache
Date: Sat, 18 May 2002 03:49:00 -0000	[thread overview]
Message-ID: <200205181048.LAA25913@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Fri, 17 May 2002 12:48:03 EDT." <3CE53443.6070807@cygnus.com>


> I think the line-in-sand approach to just banning values in 
> pseudo-registers post register-read is both better and easier

Don't get me wrong, I'm all in favour of tightening up the definitions.  
What frightens me is the length of time that the "legacy" interfaces will 
have to remain (and the rate at which we are growing the number of them).

> 
> Shouldn't be too hard to do this using the tweaked regcache  - that uses 
> regcache->descr->nr_registers instead of NUM_REGS + NUM_PSEUDO_REGS.  In 
> fact [evil laughter :-)] I can think of a few other things that it could 
> disallow:
> 	- holes in the register cache

Hmm, I think this will depend on who "owns" the regcache layout.  If it's 
a property of the "target" vector, then that is reasonable.  If it's a 
property of the tdep code (gdbarch vector), as I think it should be, then 
I don't think it is reasonable.

Forcing the tdep code to modify it's understanding of the regcache layout 
for each possible target sounds like a nightmare.  And since not every 
target can supply all the registers that might exist in an ARM system we 
are bound to be left with holes at times.

My preferred solution would be for tdep code (gdbarch) to supply a 
standard layout of the regcache space, and then have the target vector 
code notify the regcache layer which of those registers it is able to 
supply (or unable to supply if that is more appropriate).

> 	- differing register virtual and raw sizes

That one doesn't worry me any more :-)

R.



  reply	other threads:[~2002-05-18 10:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17  6:53 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 [this message]
2002-05-18 11:08         ` Andrew Cagney

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=200205181048.LAA25913@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=ac131313@cygnus.com \
    --cc=ezannoni@redhat.com \
    --cc=gdb@sources.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