From: Andrew Cagney <ac131313@cygnus.com>
To: GDB Discussion <gdb@sources.redhat.com>
Subject: Re: A better register interface
Date: Thu, 15 Feb 2001 18:54:00 -0000 [thread overview]
Message-ID: <3A8C9561.75AB3F92@cygnus.com> (raw)
In-Reply-To: <3A8B5C60.92EEABA3@cygnus.com>
Andrew Cagney wrote:
> cooked_register_name(frame, REGNUM)
> cooked_register_type(frame, REGNUM)
> provides the size implicitly
> read_cooked_register(frame, REGNUM, buf, sizeof buf)
> write_cooked_register(frame, REGNUM, buf, sizeof buf)
> along with a few others such as:
> cooked_register_attrib_p (frame, REGNUM, some attribute - is FP?)
I should expand a little. Attatching the frame to the COOKED register
methods is so that GDB can clearly handle the situtation where the
ISA/ABI change as you move up/down the stack.
Given the frame you can determine the PC and SP and hence the actual
mode of the CPU at that point. That in turn allows you to correctly
display the registers that apply to that frame.
Eventually, the architecture/abi objects could be simply attatched to
the frame, rather than having to look them up.
Andrew
next prev parent reply other threads:[~2001-02-15 18:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2001-02-26 14:01 ` Nick Duffek
2001-02-26 16:05 ` Andrew Cagney
2001-02-15 16:46 Peter Reilley
2001-02-15 18:20 ` Andrew Cagney
2001-02-16 6:48 ` 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=3A8C9561.75AB3F92@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