diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-14 14:05:16 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-14 14:05:16 +0000 |
commit | a3012272b0820f86cd29a35aee2fcce1ad32053a (patch) | |
tree | 650fa070b0d73a48eab56653ab214ff3c05844b8 /gdb | |
parent | 75236adbd267cd7fecd28824d796657cf8bf3aa2 (diff) | |
download | gdb-a3012272b0820f86cd29a35aee2fcce1ad32053a.zip gdb-a3012272b0820f86cd29a35aee2fcce1ad32053a.tar.gz gdb-a3012272b0820f86cd29a35aee2fcce1ad32053a.tar.bz2 |
* gdbtypes.h (struct type): Fix comment about what units the
TYPE_LENGTH is in.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbtypes.h | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9902cb1..a1c99b8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 14 05:52:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com) + + * gdbtypes.h (struct type): Fix comment about what units the + TYPE_LENGTH is in. + Mon Mar 13 18:27:25 1995 Stan Shebs <shebs@andros.cygnus.com> * ch-valprint.c (annotate.h): Include. diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index c6b9551..63a8e53 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -178,8 +178,16 @@ struct type char *tag_name; - /* Length, in units of TARGET_CHAR_BIT bits, - of storage for a value of this type */ + /* Length of storage for a value of this type. Various places pass + this to memcpy and such, meaning it must be in units of + HOST_CHAR_BIT. Various other places expect they can calculate + addresses by adding it and such, meaning it must be in units of + TARGET_CHAR_BIT. For some DSP targets, in which HOST_CHAR_BIT + will (presumably) be 8 and TARGET_CHAR_BIT will be (say) 32, this + is a problem. One fix would be to make this field in bits + (requiring that it always be a multiple of HOST_CHAR_BIT and + TARGET_CHAR_BIT)--the other choice would be to make it + consistently in units of HOST_CHAR_BIT. */ unsigned length; |