aboutsummaryrefslogtreecommitdiff
path: root/binutils/stabs.c
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 /binutils/stabs.c
parent41f5a528d28a9f0ed0e40ebd1a2b2afa5db2af52 (diff)
downloadgdb-944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b.zip
gdb-944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b.tar.gz
gdb-944e5c61c8aa67f917e3c3bb8c4ce1cc53941f4b.tar.bz2
AAganichev's parse_stab_type size fix.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r--binutils/stabs.c1
1 files changed, 1 insertions, 0 deletions
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;