aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/index-write.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-01-31 13:27:21 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-01-31 22:03:40 -0500
commit19455ee11dee11bd4ad1d05aac6f86114ec37848 (patch)
tree3e1a381d5e98f89c88debe87d2c920d13716929d /gdb/dwarf2/index-write.c
parenta8dc67183978d0b0369ec7e45b19ccd613a2321d (diff)
downloadfsf-binutils-gdb-19455ee11dee11bd4ad1d05aac6f86114ec37848.zip
fsf-binutils-gdb-19455ee11dee11bd4ad1d05aac6f86114ec37848.tar.gz
fsf-binutils-gdb-19455ee11dee11bd4ad1d05aac6f86114ec37848.tar.bz2
gdb/dwarf: rename cooked_index_vector to cooked_index
See previous patch's commit message for rationale. Change-Id: I6b8cdc045dffccc1c01ed690ff258af09f6ff076 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/dwarf2/index-write.c')
-rw-r--r--gdb/dwarf2/index-write.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index 82cd3a8..52f6054 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -1124,7 +1124,7 @@ write_gdbindex_1 (FILE *out_file,
/* Write the contents of the internal "cooked" index. */
static void
-write_cooked_index (cooked_index_vector *table,
+write_cooked_index (cooked_index *table,
const cu_index_map &cu_index_htab,
struct mapped_symtab *symtab)
{
@@ -1199,8 +1199,7 @@ write_cooked_index (cooked_index_vector *table,
associated dwz file, DWZ_OUT_FILE must be NULL. */
static void
-write_gdbindex (dwarf2_per_objfile *per_objfile,
- cooked_index_vector *table,
+write_gdbindex (dwarf2_per_objfile *per_objfile, cooked_index *table,
FILE *out_file, FILE *dwz_out_file)
{
mapped_symtab symtab;
@@ -1289,8 +1288,7 @@ static const gdb_byte dwarf5_gdb_augmentation[] = { 'G', 'D', 'B', 0 };
many bytes were expected to be written into OUT_FILE. */
static void
-write_debug_names (dwarf2_per_objfile *per_objfile,
- cooked_index_vector *table,
+write_debug_names (dwarf2_per_objfile *per_objfile, cooked_index *table,
FILE *out_file, FILE *out_file_str)
{
const bool dwarf5_is_dwarf64 = check_dwarf64_offsets (per_objfile);
@@ -1464,8 +1462,7 @@ write_dwarf_index (dwarf2_per_objfile *per_objfile, const char *dir,
if (per_objfile->per_bfd->index_table == nullptr)
error (_("No debugging symbols"));
- cooked_index_vector *table
- = per_objfile->per_bfd->index_table->index_for_writing ();
+ cooked_index *table = per_objfile->per_bfd->index_table->index_for_writing ();
if (per_objfile->per_bfd->types.size () > 1)
error (_("Cannot make an index when the file has multiple .debug_types sections"));