* stabs.c (parse_stab_sun_builtin_type): Parse, but ignore SUN's
   'b' and 'v' extensions.
This commit is contained in:
Nick Clifton 2008-09-30 12:19:51 +00:00
parent e144674af8
commit 42b722c134
2 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2008-09-30 Andrew Paprocki <andrew@ishiboo.com>
PR 6922
* stabs.c (parse_stab_sun_builtin_type): Parse, but ignore SUN's
'b' and 'v' extensions.
2008-09-29 Peter O'Gorman <pogma@thewrittenword.com> 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
Steve Ellcey <sje@cup.hp.com> Steve Ellcey <sje@cup.hp.com>

View file

@ -1,6 +1,6 @@
/* stabs.c -- Parse stabs debugging information /* stabs.c -- Parse stabs debugging information
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2006, 2007 Free Software Foundation, Inc. 2006, 2007, 2008 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>. Written by Ian Lance Taylor <ian@cygnus.com>.
This file is part of GNU Binutils. This file is part of GNU Binutils.
@ -1837,11 +1837,13 @@ parse_stab_sun_builtin_type (void *dhandle, const char **pp)
} }
++*pp; ++*pp;
/* For some odd reason, all forms of char put a c here. This is strange /* OpenSolaris source code indicates that one of "cbv" characters
because no other type has this honor. We can safely ignore this because can come next and specify the intrinsic 'iformat' encoding.
we actually determine 'char'acterness by the number of bits specified in 'c' is character encoding, 'b' is boolean encoding, and 'v' is
the descriptor. */ varargs encoding. This field can be safely ignored because
if (**pp == 'c') the type of the field is determined from the bitwidth extracted
below. */
if (**pp == 'c' || **pp == 'b' || **pp == 'v')
++*pp; ++*pp;
/* The first number appears to be the number of bytes occupied /* The first number appears to be the number of bytes occupied