|
From: <sv...@va...> - 2005-07-21 11:49:44
|
Author: tom
Date: 2005-07-21 12:49:24 +0100 (Thu, 21 Jul 2005)
New Revision: 4221
Log:
Allow negative sizes for structure members in stabs. Fixed bug #109385.
Modified:
trunk/coregrind/m_debuginfo/stabs.c
Modified: trunk/coregrind/m_debuginfo/stabs.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/stabs.c 2005-07-20 17:48:18 UTC (rev 4220=
)
+++ trunk/coregrind/m_debuginfo/stabs.c 2005-07-21 11:49:24 UTC (rev 4221=
)
@@ -935,7 +935,11 @@
=20
if (*p =3D=3D ',') {
EXPECT(',', "struct OFFSET");
- sz =3D atou(&p, 0);
+
+ /* as with the offset, it seems that GNAT likes to
+ generate negative sizes so we use atoi here in
+ order to allow them - see bug 109385 for details */
+ sz =3D atoi(&p, 0);
} else {
/* sometimes the size is missing and assumed to be a
pointer (in bits) */
|