projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2425869
)
Previously, the size of pointers was taken from the hosts pointer size. Now, it is...
author
John Metzler
<jmetzler@cygnus>
Wed, 4 Mar 1998 01:12:43 +0000
(
01:12
+0000)
committer
John Metzler
<jmetzler@cygnus>
Wed, 4 Mar 1998 01:12:43 +0000
(
01:12
+0000)
gdb/dwarfread.c
patch
|
blob
|
history
diff --git
a/gdb/dwarfread.c
b/gdb/dwarfread.c
index 0ef59b7dc4fd3beec76974f6f14d2ec6e2093287..323ceaf0023960d8bc63132092d28bb8bd22d611 100644
(file)
--- 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;
}
}