[PATCH 22/30] Rename write_psymtabs_to_index
Tom Tromey
tom@tromey.com
Thu Aug 26 02:19:29 GMT 2021
We'll be removing all the psymtab code from the DWARF reader. As a
preparatory step, this renames write_psymtabs_to_index to avoid the
"psymtab" name.
---
gdb/dwarf2/index-cache.c | 6 +++---
gdb/dwarf2/index-write.c | 10 +++++-----
gdb/dwarf2/index-write.h | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/gdb/dwarf2/index-cache.c b/gdb/dwarf2/index-cache.c
index c3decf16ead..763bb17c63a 100644
--- a/gdb/dwarf2/index-cache.c
+++ b/gdb/dwarf2/index-cache.c
@@ -149,9 +149,9 @@ index_cache::store (dwarf2_per_objfile *per_objfile)
/* 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)
{
diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index 4e00c716d91..b06383cb32c 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -1578,9 +1578,9 @@ struct index_wip_file
/* 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;
@@ -1676,8 +1676,8 @@ save_gdb_index_command (const char *arg, int from_tty)
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)
{
diff --git a/gdb/dwarf2/index-write.h b/gdb/dwarf2/index-write.h
index 27f1f03cd8b..8fb81dda8be 100644
--- a/gdb/dwarf2/index-write.h
+++ b/gdb/dwarf2/index-write.h
@@ -32,7 +32,7 @@
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);
--
2.31.1
More information about the Gdb-patches
mailing list