/* Write the index itself to the directory, using the build id as the
filename. */
- write_psymtabs_to_index (per_objfile, m_dir.c_str (),
- build_id_str.c_str (), dwz_build_id_ptr,
- dw_index_kind::GDB_INDEX);
+ write_dwarf_index (per_objfile, m_dir.c_str (),
+ build_id_str.c_str (), dwz_build_id_ptr,
+ dw_index_kind::GDB_INDEX);
}
catch (const gdb_exception_error &except)
{
/* See dwarf-index-write.h. */
void
-write_psymtabs_to_index (dwarf2_per_objfile *per_objfile, const char *dir,
- const char *basename, const char *dwz_basename,
- dw_index_kind index_kind)
+write_dwarf_index (dwarf2_per_objfile *per_objfile, const char *dir,
+ const char *basename, const char *dwz_basename,
+ dw_index_kind index_kind)
{
dwarf2_per_bfd *per_bfd = per_objfile->per_bfd;
struct objfile *objfile = per_objfile->objfile;
if (dwz != NULL)
dwz_basename = lbasename (dwz->filename ());
- write_psymtabs_to_index (per_objfile, arg, basename, dwz_basename,
- index_kind);
+ write_dwarf_index (per_objfile, arg, basename, dwz_basename,
+ index_kind);
}
catch (const gdb_exception_error &except)
{
derived from INDEX_KIND is added to this base name. DWZ_BASENAME is the
same, but for the dwz file's index. */
-extern void write_psymtabs_to_index
+extern void write_dwarf_index
(dwarf2_per_objfile *per_objfile, const char *dir, const char *basename,
const char *dwz_basename, dw_index_kind index_kind);