From 5a04f7d16c200eae6e20d7cb9dfdad0950f37a8b Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Mon, 1 Aug 1994 20:41:11 +0000 Subject: [PATCH] Modified Files: stabsread.c ChangeLog * stabsread.c (read_type): Fix a bug in enum size calculation. --- gdb/ChangeLog | 4 ++++ gdb/stabsread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9918c80531..8c6aa1f6f4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Aug 1 13:38:04 1994 Kung Hsu (kung@mexican.cygnus.com) + + * stabsread.c (read_type): Fix a bug in enum size calculation. + Mon Aug 1 01:36:13 1994 Jeff Law (law@snake.cs.utah.edu) * hppa-tdep.c (compare_unwind_entries): Add "const" to both diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 144554063a..58778e0a76 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1739,7 +1739,7 @@ read_type (pp, objfile) /* Size specified in a type attribute overrides any other size. */ if (type_size != -1) - TYPE_LENGTH (type) = type_size / TARGET_CHAR_BIT; + TYPE_LENGTH (type) = (type_size + TARGET_CHAR_BIT - 1) / TARGET_CHAR_BIT; return type; } -- 2.34.1