Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!tiemann From: tiemann@YAHI.STANFORD.EDU (Michael Tiemann) Newsgroups: gnu.gdb.bug Subject: GDB 3.1.2 bug fix Message-ID: <8904071823.AA17790@yahi.stanford.edu> Date: 7 Apr 89 18:23:27 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@lurch.stanford.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 This fixed a bug Dirk Grunwald found using GDB 3.1.2 with GNU C++ 1.34.2: yahi% diff -c2 dbxread.c~ dbxread.c *** dbxread.c~ Wed Mar 22 15:02:39 1989 --- dbxread.c Fri Apr 7 11:22:39 1989 *************** *** 3794,3798 **** int read_possible_virtual_info = 0; ! if (TYPE_CODE (type) == TYPE_CODE_UNDEF) { TYPE_MAIN_VARIANT (type) = type; --- 3794,3798 ---- int read_possible_virtual_info = 0; ! if (TYPE_MAIN_VARIANT (type) == 0) { TYPE_MAIN_VARIANT (type) = type; yahi% Michael