This is the mail archive of the archer-commits@sourceware.org mailing list for the Archer 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]

[SCM] archer-tromey-optional-psymtab: Remove from_tty argument from expand_all_symtabs method


The branch, archer-tromey-optional-psymtab has been updated
       via  a2a41c26753dec40ef3e0678758de1c2dca7df10 (commit)
      from  ec5adc3e38afb30240cebaab766591312e8c68e3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit a2a41c26753dec40ef3e0678758de1c2dca7df10
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Nov 17 10:14:09 2009 -0700

    Remove from_tty argument from expand_all_symtabs method

-----------------------------------------------------------------------

Summary of changes:
 gdb/psymtab.c |    9 +--------
 gdb/symfile.c |   10 +++++++++-
 gdb/symfile.h |    6 ++----
 3 files changed, 12 insertions(+), 13 deletions(-)

First 500 lines of diff:
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 9a32775..0e10889 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -908,19 +908,12 @@ maintenance_print_psymbols (char *args, int from_tty)
 }
 
 static void
-expand_partial_symbol_tables (struct objfile *objfile, int from_tty)
+expand_partial_symbol_tables (struct objfile *objfile)
 {
   struct partial_symtab *psymtab;
 
   require_partial_symbols (objfile);
 
-  if (from_tty || info_verbose)
-    {
-      printf_unfiltered (_("expanding to full symbols..."));
-      wrap_here ("");
-      gdb_flush (gdb_stdout);
-    }
-
   for (psymtab = objfile->psymtabs;
        psymtab != NULL;
        psymtab = psymtab->next)
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 0ea75ff..75fbee6 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -953,7 +953,15 @@ symbol_file_add_with_addrs_or_offsets (bfd *abfd,
      all partial symbol tables for this objfile if so. */
 
   if ((flags & OBJF_READNOW) || readnow_symbol_files)
-    objfile->sf->qf->expand_all_symtabs (objfile, from_tty);
+    {
+      if (from_tty || info_verbose)
+	{
+	  printf_unfiltered (_("expanding to full symbols..."));
+	  wrap_here ("");
+	  gdb_flush (gdb_stdout);
+	}
+      objfile->sf->qf->expand_all_symtabs (objfile);
+    }
 
   /* If the file has its own symbol tables it has no separate debug info.
      `.dynsym'/`.symtab' go to MSYMBOLS, `.debug_info' goes to SYMTABS/PSYMTABS.
diff --git a/gdb/symfile.h b/gdb/symfile.h
index e03e93d..8ee35a7 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -188,10 +188,8 @@ struct quick_symbol_functions
   void (*expand_symtabs_for_function) (struct objfile *objfile,
 				       const char *func_name);
 
-  /* Read all symbol tables associated with OBJFILE.  If FROM_TTY is
-     true (or if INFO_VERBOSE), this should print some sort of message
-     to gdb_stdout.  */
-  void (*expand_all_symtabs) (struct objfile *objfile, int from_tty);
+  /* Read all symbol tables associated with OBJFILE.  */
+  void (*expand_all_symtabs) (struct objfile *objfile);
 
   /* Read all symbol tables associated with OBJFILE which have the
      file name FILENAME.  */


hooks/post-receive
--
Repository for Project Archer.


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