From: Elena Zannoni <ezannoni@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] stabsread.c: deal with SUN's compiler error
Date: Fri, 04 Jan 2002 11:43:00 -0000 [thread overview]
Message-ID: <15413.64203.432687.273601@localhost.localdomain> (raw)
As reported in:
http://sources.redhat.com/ml/gdb/2001-12/msg00190.html
I have committed the following. Tested on RH linux 7.1. No regressions.
Elena
2002-01-04 Elena Zannoni <ezannoni@redhat.com>
* stabsread.c: Update copyright years.
From Debashis Mahata <debashis.mahata@wipro.com>:
(read_struct_fields): Deal with Sun C compiler erroneous stab
output for structs and unions.
Index: stabsread.c
===================================================================
RCS file: /cvs/uberbaum/gdb/stabsread.c,v
retrieving revision 1.19
diff -u -p -r1.19 stabsread.c
--- stabsread.c 2001/12/12 02:11:51 1.19
+++ stabsread.c 2002/01/04 19:35:50
@@ -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 *f
/* 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;
reply other threads:[~2002-01-04 19:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15413.64203.432687.273601@localhost.localdomain \
--to=ezannoni@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox