diff options
author | John Metzler <jmetzler@cygnus> | 1998-03-04 01:12:43 +0000 |
---|---|---|
committer | John Metzler <jmetzler@cygnus> | 1998-03-04 01:12:43 +0000 |
commit | 67359871bb5e47e0b0fc8bd12f5e36a523be38ee (patch) | |
tree | 5355e586dd1070d597cdadf0e78f4468bae0a186 /gdb/dwarfread.c | |
parent | 2425869cc273cf4dd42dc46750879e1be1c74ef9 (diff) | |
download | gdb-67359871bb5e47e0b0fc8bd12f5e36a523be38ee.zip gdb-67359871bb5e47e0b0fc8bd12f5e36a523be38ee.tar.gz gdb-67359871bb5e47e0b0fc8bd12f5e36a523be38ee.tar.bz2 |
Previously, the size of pointers was taken from the hosts pointer size. Now, it is a function of TARGET_PTR_BITS.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index 0ef59b7..323ceaf 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -1503,10 +1503,8 @@ read_tag_pointer_type (dip) TYPE_POINTER_TYPE (type) = utype; /* We assume the machine has only one representation for pointers! */ - /* FIXME: This confuses host<->target data representations, and is a - poor assumption besides. */ - - TYPE_LENGTH (utype) = sizeof (char *); + /* FIXME: Possably a poor assumption */ + TYPE_LENGTH (utype) = TARGET_PTR_BIT / TARGET_CHAR_BIT ; TYPE_CODE (utype) = TYPE_CODE_PTR; } } |