[gnu.gdb.bug] addition to: gdb 3.2 patch to inform earlier about symbol reading

juha@tds.kth.se (Juha Sarlin) (08/26/89)

In private e-mail: Jim Kingdon <kingdon@ai.mit.edu> said:
>Unfortunately, your patch is not correct.  If one symtab is dependent
>on another (this occurs with Sun CC and binary includes (BINCLs),
>though we may add BINCLs to GCC someday) we want to print out a
>message for each one.
>
>At least I think it is a good idea to print out a message for each
>one; that's what it does now, and I think it would be confusing if it
>read in symbols for files without telling the user.

Well, I agree. Here is an additional patch to make gdb say:

Reading symbol data from foo.c... and bar.c... and whatever.c...done

*** /tmp/,RCSt1a00797	Fri Aug 25 16:46:22 1989
--- dbxread.c	Fri Aug 25 16:44:17 1989
***************
*** 2621,2625 ****
    for (i = 0; i < pst->number_of_dependencies; i++)
!     if (!pst->dependencies[i]->readin)
!       psymtab_to_symtab_1 (pst->dependencies[i], desc,
! 			   stringtab, sym_offset);
  
--- 2621,2636 ----
    for (i = 0; i < pst->number_of_dependencies; i++)
!     if (!pst->dependencies[i]->readin) 
!       {
! 	extern int info_verbose; /* Give verbose info on gdb action.  */
! 
! 	/* Inform about additional files that need to be read in. */
! 	if (info_verbose)
! 	  {
! 	    printf_filtered (" and %s...", pst->filename);
! 	    fflush (stdout);
! 	  }
! 
! 	psymtab_to_symtab_1 (pst->dependencies[i], desc,
! 			     stringtab, sym_offset);
!       }
  
--
Juha Sarlin	juha@tds.kth.se