]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove objfile parameter from read_gdb_index_from_buffer
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Apr 2020 12:07:33 +0000 (08:07 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 8 Apr 2020 12:07:33 +0000 (08:07 -0400)
I noticed this was unused, so remove it.

gdb/ChangeLog:

* dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
parameter.c.
(dwarf2_read_gdb_index): Update.

gdb/ChangeLog
gdb/dwarf2/read.c

index 255262a2f27cf442044f2c4d74a082828a8c1996..7ea85799211ab92f39cbd6cdc712757ebd876a47 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
+       parameter.c.
+       (dwarf2_read_gdb_index): Update.
+
 2020-04-07  Kamil Rytarowski  <n54@gmx.com>
 
        * nbsd-tdep.c: Include "objfiles.h".
index f1ddadef8d5c485801715cd5ab6eabd438ab9bc0..da702205c60c3ae8abf1d59b5ad60d4d8d5d92e3 100644 (file)
@@ -2854,8 +2854,7 @@ find_slot_in_mapped_hash (struct mapped_index *index, const char *name,
    Returns true if all went well, false otherwise.  */
 
 static bool
-read_gdb_index_from_buffer (struct objfile *objfile,
-                           const char *filename,
+read_gdb_index_from_buffer (const char *filename,
                            bool deprecated_ok,
                            gdb::array_view<const gdb_byte> buffer,
                            struct mapped_index *map,
@@ -2983,7 +2982,7 @@ dwarf2_read_gdb_index
     return 0;
 
   std::unique_ptr<struct mapped_index> map (new struct mapped_index);
-  if (!read_gdb_index_from_buffer (objfile, objfile_name (objfile),
+  if (!read_gdb_index_from_buffer (objfile_name (objfile),
                                   use_deprecated_index_sections,
                                   main_index_contents, map.get (), &cu_list,
                                   &cu_list_elements, &types_list,
@@ -3009,8 +3008,7 @@ dwarf2_read_gdb_index
       if (dwz_index_content.empty ())
        return 0;
 
-      if (!read_gdb_index_from_buffer (objfile,
-                                      bfd_get_filename (dwz->dwz_bfd.get ()),
+      if (!read_gdb_index_from_buffer (bfd_get_filename (dwz->dwz_bfd.get ()),
                                       1, dwz_index_content, &dwz_map,
                                       &dwz_list, &dwz_list_elements,
                                       &dwz_types_ignore,