Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: GDB Discussion <gdb@sources.redhat.com>
Subject: Re: A better register interface
Date: Fri, 16 Feb 2001 06:48:00 -0000	[thread overview]
Message-ID: <3A8D3CB1.56F453BA@cygnus.com> (raw)
In-Reply-To: <3A8C8D34.A33813EE@cygnus.com>

Andrew Cagney wrote:

> It would consist of roughly:
> 
>         core-gdb
>             \
>           cooked-regs   your-target
>               \         /
>              raw-regs-buffer

Actually, try this:

            context
             /    \  .----.
            /      \ |    |
           /      frame---'
          /       /   \
   continuation  /     \
        |       /       \
        |      /         \
        |   memcache   regcache
        |      |           |
..........................................
        |      |           |
   targ-run  targ-mem  targ-regs

Where:

context:
The execution thing that the user likes to manipulate. In the simple
case it represents a UNIX process with memory, stack and registers.

continuation:
The per context start/stop state.  It keeps track of what the user/GDB
is trying to do to a context while the context is running.

frame:
Frames make up more than just the context stack.  When moving between
frames, anything could change - the address space, registers,
architecture, target.  GDB already tries to handle (badly) targets that
have architecture changes between frames.

memcache:
gdb's representation a target's memory address space.

regcache:
gdb's representation of a target's registers.

	enjoy,
		Andrew


  reply	other threads:[~2001-02-16  6:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-15 16:46 Peter Reilley
2001-02-15 18:20 ` Andrew Cagney
2001-02-16  6:48   ` Andrew Cagney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-14 20:39 Andrew Cagney
2001-02-14 22:17 ` Nick Duffek
2001-02-15  3:37   ` Eli Zaretskii
2001-02-15  7:43     ` Nick Duffek
2001-02-15 18:54 ` Andrew Cagney
2001-02-26 14:01 ` Nick Duffek
2001-02-26 16:05   ` 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=3A8D3CB1.56F453BA@cygnus.com \
    --to=ac131313@cygnus.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