Article View: gnu.gdb.bug
Article #9954GDB 3.5 fix for COFF symbols
From: Chip Salzenberg
Date: Mon, 06 Aug 1990 16:24
Date: Mon, 06 Aug 1990 16:24
36 lines
1563 bytes
1563 bytes
This patch fixes a bug that shows up in GDB 3.5 when reading COFF
files. The code that reads enum members doesn't stop when it should,
thus consuming symbols that should be read elsewhere. In my system,
it showed up when debugging gdb failed; gdb complained because the
.bb/.eb (begin block/end block) symbols didn't nest properly.
Index: coffread.c
***************
*** 1916,1919 ****
--- 1916,1920 ----
register int n;
char *name;
+ int done = 0;
#ifdef NAMES_HAVE_UNDERSCORE
int offset = 1;
***************
*** 1929,1933 ****
osyms = *symlist;
! while (symnum < lastsym && symnum < nlist_nsyms_global)
{
read_one_sym (ms, &sub_sym, &sub_aux);
--- 1930,1934 ----
osyms = *symlist;
! while (!done && symnum < lastsym && symnum < nlist_nsyms_global)
{
read_one_sym (ms, &sub_sym, &sub_aux);
***************
*** 1950,1953 ****
--- 1951,1955 ----
case C_EOS:
+ done = 1;
break;
}
Technical Details
Message-ID:
<m0hzAFx-0001V6C@tct.uucp>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!tct!chipShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,ec1cfc7c0c7e9a22,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-08-06 09:24:44 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!tct!chip From: tct!chip@UUNET.UU.NET (Chip Salzenberg) Newsgroups: gnu.gdb.bug Subject: GDB 3.5 fix for COFF symbols Message-ID: <m0hzAFx-0001V6C@tct.uucp> Date: 6 Aug 90 16:24:44 GMT Sender: news@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 36 Posted: Mon Aug 6 17:24:44 1990