Article View: gnu.gdb.bug
Article #245addition to: gdb 3.2 patch to inform earlier about symbol reading
From: Juha Sarlin
Date: Sat, 26 Aug 1989 16:12
Date: Sat, 26 Aug 1989 16:12
42 lines
1857 bytes
1857 bytes
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
Technical Details
Message-ID:
<8908261412.AA00734@ttds.tds.kth.se>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!tds.kth.se!juhaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!tds.kth.se!juha From: juha@tds.kth.se (Juha Sarlin) Newsgroups: gnu.gdb.bug Subject: addition to: gdb 3.2 patch to inform earlier about symbol reading Message-ID: <8908261412.AA00734@ttds.tds.kth.se> Date: 26 Aug 89 16:12:44 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 42