]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
AAganichev's parse_stab_type size fix.
authorAlan Modra <amodra@gmail.com>
Sat, 1 Jul 2000 10:00:05 +0000 (10:00 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 1 Jul 2000 10:00:05 +0000 (10:00 +0000)
binutils/ChangeLog
binutils/stabs.c

index 717e27bdb0ce371be2770be4cc37464745879d50..1e080cdd9a473c140016e69a55298a80d22b16d0 100644 (file)
@@ -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
index 8c20ed308e1cc2363f4310de503e445800361157..5f600354257e3b11550f096d8a5db51a6773bea5 100644 (file)
@@ -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;