From: Elena Zannoni Date: Fri, 4 Jan 2002 19:43:09 +0000 (+0000) Subject: 2002-01-04 Elena Zannoni X-Git-Tag: cygnus_cvs_20020108_pre~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fedbd09164ad3166d097fc55b8a6082b8fd14350;p=external%2Fbinutils.git 2002-01-04 Elena Zannoni * stabsread.c: Update copyright years. From Debashis Mahata : (read_struct_fields): Deal with Sun C compiler erroneous stab output for structs and unions. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bb87592..5a55c58 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2002-01-04 Elena Zannoni + + * stabsread.c: Update copyright years. + + From Debashis Mahata : + (read_struct_fields): Deal with Sun C compiler erroneous stab + output for structs and unions. + 2002-01-04 Daniel Jacobowitz * p-valprint.c: Include "cp-abi.h" for baseclass_offset diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 620634a..0b5ceac 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1,6 +1,6 @@ /* Support routines for decoding "stabs" debugging information format. Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, - 1996, 1997, 1998, 1999, 2000 + 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GDB. @@ -3541,8 +3541,10 @@ read_struct_fields (struct field_info *fip, char **pp, struct type *type, /* Read each data member type until we find the terminating ';' at the end of the data member list, or break for some other reason such as finding the start of the member function list. */ + /* Stab string for structure/union does not end with two ';' in + SUN C compiler 5.3 i.e. F6U2, hence check for end of string. */ - while (**pp != ';') + while (**pp != ';' && **pp != '\0') { if (os9k_stabs && **pp == ',') break;