diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-05-12 02:16:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-05-12 02:16:05 +0000 |
commit | b2e75d78994bf7899fdb51387a9d95950f09ad9a (patch) | |
tree | 19239430a42fa2a92397b09ccfe7837e82dbf558 /gdb/doc | |
parent | 451fbdda72c96478a54f21d5c8a3f14286a4084d (diff) | |
download | fsf-binutils-gdb-b2e75d78994bf7899fdb51387a9d95950f09ad9a.zip fsf-binutils-gdb-b2e75d78994bf7899fdb51387a9d95950f09ad9a.tar.gz fsf-binutils-gdb-b2e75d78994bf7899fdb51387a9d95950f09ad9a.tar.bz2 |
* arch-utils.h (generic_register_size): Declare.
(generic_register_raw_size, generic_register_virtual_size): Delete
declarations.
* arch-utils.c (generic_register_raw_size): Delete.
(generic_register_size): New function.
(generic_register_virtual_size): Delete.
* gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
default generic_register_size.
* gdbarch.h, gdbarch.c: Re-generate.
* d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
register_virtual_size.
* x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* gdbint.texinfo (Target Architecture Definition): Mention
defaults for REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE.
(Target Architecture Definition): Mention same. Add references to
web pages.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdbint.texinfo | 15 |
2 files changed, 18 insertions, 4 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 8c9a9f6..3ddf6f6 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2002-05-11 Andrew Cagney <ac131313@redhat.com> + + * gdbint.texinfo (Target Architecture Definition): Mention + defaults for REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE. + (Target Architecture Definition): Mention same. Add references to + web pages. + 2002-05-08 Michael Snyder <msnyder@redhat.com> * stabs.texinfo (Attributes): Document new "vector" attribute. diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 3387cdb..a52c19c 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -2496,8 +2496,13 @@ C@t{++} reference type. @emph{Maintainer's note: The way GDB manipulates registers is undergoing significant change. Many of the macros and functions refered to in the -sections below are likely to be made obsolete. See the file @file{TODO} -for more up-to-date information.} +section below are likely to be made obsolete. For instance, instead of +having different raw and virtual register sizes, an architecture can +define pseudo-registers that map onto the raw registers. + +See the @uref{http://www.gnu.org/software/gdb/bugs/, Bug Tracking +Database} and @uref{http://sources.redhat.com/gdb/current/ari, ARI +Index} for more up-to-date information.} Some architectures use one representation for a value when it lives in a register, but use a different representation when it lives in memory. @@ -3175,12 +3180,14 @@ Return non-zero if @var{reg} uses different raw and virtual formats. @item REGISTER_RAW_SIZE (@var{reg}) @findex REGISTER_RAW_SIZE -Return the raw size of @var{reg}. +Return the raw size of @var{reg}; defaults to the size of the register's +virtual type. @xref{Target Architecture Definition, , Using Different Register and Memory Data Representations}. @item REGISTER_VIRTUAL_SIZE (@var{reg}) @findex REGISTER_VIRTUAL_SIZE -Return the virtual size of @var{reg}. +Return the virtual size of @var{reg}; defaults to the size of the +register's virtual type. @xref{Target Architecture Definition, , Using Different Register and Memory Data Representations}. @item REGISTER_VIRTUAL_TYPE (@var{reg}) |