]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove init_psymbol_list
authorTom Tromey <tom@tromey.com>
Sun, 1 Nov 2020 16:51:13 +0000 (09:51 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 1 Nov 2020 16:51:13 +0000 (09:51 -0700)
init_psymbol_list is now empty, and so this removes it.

gdb/ChangeLog
2020-11-01  Tom Tromey  <tom@tromey.com>

* dbxread.c (dbx_symfile_read): Update.
* dwarf2/read.c (dwarf2_build_psymtabs): Update.
* xcoffread.c (xcoff_initial_scan): Update.
* psympriv.h (init_psymbol_list): Don't declare.
* psymtab.c (init_psymbol_list): Remove.

gdb/ChangeLog
gdb/dbxread.c
gdb/dwarf2/read.c
gdb/psympriv.h
gdb/psymtab.c
gdb/xcoffread.c

index 5ec5d2512150044c3979a45d293ef3e498cbf394..4d4ba16bb744b721fc0f351bfc7044f8cdeaaf11 100644 (file)
@@ -1,3 +1,11 @@
+2020-11-01  Tom Tromey  <tom@tromey.com>
+
+       * dbxread.c (dbx_symfile_read): Update.
+       * dwarf2/read.c (dwarf2_build_psymtabs): Update.
+       * xcoffread.c (xcoff_initial_scan): Update.
+       * psympriv.h (init_psymbol_list): Don't declare.
+       * psymtab.c (init_psymbol_list): Remove.
+
 2020-11-01  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
index 4665cddc5f190182fb14134bcc90f5751cb11c98..4e189a7f127d3f10fb2b49bbc4cc75d04224d74e 100644 (file)
@@ -535,9 +535,6 @@ dbx_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
   if (val < 0)
     perror_with_name (objfile_name (objfile));
 
-  /* Size the symbol table.  */
-  init_psymbol_list (objfile, DBX_SYMCOUNT (objfile));
-
   symbol_size = DBX_SYMBOL_SIZE (objfile);
   symbol_table_offset = DBX_SYMTAB_OFFSET (objfile);
 
index e1c528f44d2b09f270aa873af0e1505e6f185dee..aeb62807d80121a13109c696af63bd3554db4ac0 100644 (file)
@@ -6119,8 +6119,6 @@ dwarf2_build_psymtabs (struct objfile *objfile)
       return;
     }
 
-  init_psymbol_list (objfile, 1024);
-
   try
     {
       /* This isn't really ideal: all the data we allocate on the
index 97f9b3b596c5d77d2f0cf3a1187807684662aeb6..73077ebac7f78626e52177c1d39f273270e6bf71 100644 (file)
@@ -436,12 +436,6 @@ struct legacy_psymtab : public standard_psymtab
   void *read_symtab_private = nullptr;
 };
 
-/* Initialize storage for partial symbols.  If partial symbol storage
-   has already been initialized, this does nothing.  TOTAL_SYMBOLS is
-   an estimate of how many symbols there will be.  */
-
-extern void init_psymbol_list (struct objfile *objfile, int total_symbols);
-
 extern void end_psymtab_common (struct objfile *, struct partial_symtab *);
 
 /* Used when recording partial symbol tables.  On destruction,
index acccfca9d9141eec4fed8f53289c22dd3d926bad..349c68ed55e7e5ee0863fed61ff423e666a7a1ff 100644 (file)
@@ -1584,13 +1584,6 @@ partial_symtab::add_psymbol (gdb::string_view name, bool copy_name,
 
 /* See psympriv.h.  */
 
-void
-init_psymbol_list (struct objfile *objfile, int total_symbols)
-{
-}
-
-/* See psympriv.h.  */
-
 partial_symtab::partial_symtab (const char *filename_, struct objfile *objfile)
   : searched_flag (PST_NOT_SEARCHED),
     text_low_valid (0),
index 3588aaed0160c2858ae6ba1d79343d3be03282cd..075ebee7012281c9b844e7998211db276138838e 100644 (file)
@@ -2922,12 +2922,6 @@ xcoff_initial_scan (struct objfile *objfile, symfile_add_flags symfile_flags)
   if (val != size)
     perror_with_name (_("reading symbol table"));
 
-  /* I'm not sure how how good num_symbols is; the rule of thumb in
-     init_psymbol_list was developed for a.out.  On the one hand,
-     num_symbols includes auxents.  On the other hand, it doesn't
-     include N_SLINE.  */
-  init_psymbol_list (objfile, num_symbols);
-
   scoped_free_pendings free_pending;
   minimal_symbol_reader reader (objfile);