aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-07-01 10:00:05 +0000
committerAlan Modra <amodra@gmail.com>2000-07-01 10:00:05 +0000
commit944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b (patch)
treed66251291d578d9a9ce429326c814fe6c179cf1f
parent41f5a528d28a9f0ed0e40ebd1a2b2afa5db2af52 (diff)
downloadgdb-944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b.zip
gdb-944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b.tar.gz
gdb-944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b.tar.bz2
AAganichev's parse_stab_type size fix.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/stabs.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 717e27b..1e080cd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-01 Alexander Aganichev <AAganichev@hypercom.com>
+
+ * stabs.c (parse_stab_type): Divide size in bits by 8 as binutils
+ struct debug_type stores size in bytes.
+
2000-07-01 Alan Modra <alan@linuxcare.com.au>
* Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
diff --git a/binutils/stabs.c b/binutils/stabs.c
index 8c20ed3..5f60035 100644
--- a/binutils/stabs.c
+++ b/binutils/stabs.c
@@ -1261,6 +1261,7 @@ parse_stab_type (dhandle, info, typename, pp, slotp)
{
case 's':
size = atoi (attr + 1);
+ size /= 8; /* Size is in bits. We store it in bytes. */
if (size <= 0)
size = -1;
break;