Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@redhat.com>
To: pgilliam@us.ibm.com
Cc: Jim Blandy <jimb@redhat.com>, gdb@sources.redhat.com
Subject: Re: What should be used instead of deprecated_read_memory_nobpt()?
Date: Wed, 07 Dec 2005 02:12:00 -0000	[thread overview]
Message-ID: <43964434.1000103@redhat.com> (raw)
In-Reply-To: <200511301021.32626.pgilliam@us.ibm.com>

Jim here is obviously correct  <<there is always a frame>> was intended 
as mantra.  How would some choose to put it, a simplistic phrase to 
capture the imagination of the masses?

There are at least three parts to this:

-- the frame and a relationship to the thread, which in turn has an 
address space

-- as DanielJ points to it here:
/*NOTE: drow/2003-09-06: [...]
   They should be fixed as above, but meanwhile, we needed a solution for
   cases where functions are called with a NULL frame meaning either "the
   program is not running" or "use the selected frame".  Lazy building of
   deprecated_selected_frame confuses the situation, because now
   deprecated_selected_frame can be NULL even when the inferior is
   running. [...]
   ...
the need to also handle file-targets where the address space comes from 
a file

-- and finally the <<value <has-a> location>>, and that location could, 
in turn be a thread's memory, a frame's register, et.al.

It would be good to see these three aspects finally finally pulled 
together (works' a killer, sigh).

Andrew

PS: To clarify one thing, value persistance across resumptions of the 
inferior is implemented by fetching the value's contents, see 
record_latest_value:

  <<We don't want this value to have anything to do with the inferior
    anymore.  In particular, "set $1 = 50" should not affect the variable
    from which the value was taken, and fast watchpoints should be able
    to assume that a value on the value history never changes.>>

   if (value_lazy (val))
     value_fetch_lazy (val);


  reply	other threads:[~2005-12-07  2:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 22:04 Paul Gilliam
2005-11-29 22:07 ` Mark Kettenis
2005-11-29 22:14   ` Joel Brobecker
2005-11-30  1:36     ` Daniel Jacobowitz
2005-11-30  1:38       ` Jim Blandy
2005-11-30 23:17         ` Paul Gilliam
2005-12-07  2:12           ` Andrew Cagney [this message]
2005-11-29 22:15   ` Daniel Jacobowitz

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=43964434.1000103@redhat.com \
    --to=cagney@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=pgilliam@us.ibm.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