aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-03 21:49:43 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-03 21:49:43 +0000
commiteaba7fae01a0e61420763aca5051eae011719a90 (patch)
tree027aa3ca19eb8568ceccc95f1f1c43b883b996a7 /gdb/stabsread.c
parent8120aa8f4547382298d68547cccad3005d9f5fee (diff)
downloadgdb-eaba7fae01a0e61420763aca5051eae011719a90.zip
gdb-eaba7fae01a0e61420763aca5051eae011719a90.tar.gz
gdb-eaba7fae01a0e61420763aca5051eae011719a90.tar.bz2
* stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 75d53a9..85d54a9 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -2937,7 +2937,7 @@ read_enum_type (pp, type, objfile)
/* Now fill in the fields of the type-structure. */
- TYPE_LENGTH (type) = sizeof (int);
+ TYPE_LENGTH (type) = TARGET_INT_BIT / HOST_CHAR_BIT;
TYPE_CODE (type) = TYPE_CODE_ENUM;
TYPE_FLAGS (type) &= ~TYPE_FLAG_STUB;
TYPE_NFIELDS (type) = nsyms;