This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: symtab/1534: gdb current segfaults when debugee a.out changes


The following reply was made to PR symtab/1534; it has been noted by GNATS.

From: "Robert R. Henry" <rrh@cray.com>
To: carlton@kealia.com, drow@mvista.com
Cc: gdb-gnats@sources.redhat.com, rrh@cray.com
Subject: Re: symtab/1534: gdb current segfaults when debugee a.out changes
Date: Fri, 23 Jan 2004 09:50:24 -0800 (PST)

 I did a 'cvs update' and rebuilt using gcc 3.2.2 -m64, to yield
   GNU gdb 2004-01-23-cvs
 The problem persisted (eg, gdb still segfaulted when rereading the debugee).
 
 I then applied the suggested patch; see the end of this msg
 The problem went away.
 I think that this bug can be retired.
 
   > Index: symfile.c
   > ===================================================================
   > RCS file: /cvs/src/src/gdb/symfile.c,v
   > retrieving revision 1.116
   > diff -u -p -r1.116 symfile.c
   > --- symfile.c	19 Jan 2004 19:56:02 -0000	1.116
   > +++ symfile.c	23 Jan 2004 17:09:52 -0000
   > @@ -1918,6 +1918,7 @@ reread_symbols (void)
   >  	      objfile->symtabs = NULL;
   >  	      objfile->psymtabs = NULL;
   >  	      objfile->free_psymtabs = NULL;
   > +	      objfile->cp_namespace_symtab = NULL;
   >  	      objfile->msymbols = NULL;
   >  	      objfile->sym_private = NULL;
   >  	      objfile->minimal_symbol_count = 0;
   > 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]