Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Klee Dienes <kdienes@apple.com>, Jim Ingham <jingham@apple.com>,
	Keith Seitz <keiths@redhat.com>,
	Jason Molenda <jason-swarelist@molenda.com>,
	"Martin M. Hunt" <hunt@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Target changed, caching reg values in ``struct frame''
Date: Sat, 16 Mar 2002 12:22:00 -0000	[thread overview]
Message-ID: <3C93A965.9040500@cygnus.com> (raw)

Hello,

(I think this is more of an issue to GUI developers so I've directly 
pinged a few :-)

GDB has tried to improve its performance by having a number of 
target-changed (from target stopping) events.  For instance 
registers-changed (write to register) and possibly memory-changed (write 
to variable).

I've suggested previously that these refined events were not worth the 
effort.  If the programmer modifies something in the target (a rare 
event in its self, I don't remember the last time I modified the target) 
then it is definitly easier and simplier (and hopefully almost as fast) 
to just throw away GDB's local copy of the target's state and start again.

My question for the GUI people is, does any one have evidence supporting 
this?  Should GDB only concentrate on trying to tune target-changed 
(single step) performance and completly ignore the other cases 
(eliminating register-changed and anything else).

I know the Insight developers have so far concentrated on stepi.

--

(What is the secret plan?)

GDB has two types of registers:

	- raw registers as found in the register cache

	- frame registers as found via struct frame

Frame registers are constructed from raw-registers, memory, or the next 
inner most frame.

Would there be any performance gain in having ``struct frame'' cache the 
raw byte value of a frame register?  At present the frame contains the 
address of the saved register (for traditional frame code) (I'm not sure 
what it does for CFI frames).

I'm thinking that a key part of recovering from a stepi is the 
reconstruction of the ``struct frame'' chain.

Again, anyone got evidence supporting this?

--

enjoy
Andrew


             reply	other threads:[~2002-03-16 20:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-16 12:22 Andrew Cagney [this message]
2002-03-18  9:52 ` Jim Ingham
2002-03-18 11:51   ` 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=3C93A965.9040500@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.com \
    --cc=hunt@redhat.com \
    --cc=jason-swarelist@molenda.com \
    --cc=jingham@apple.com \
    --cc=kdienes@apple.com \
    --cc=keiths@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