diff options
author | Doug Evans <dje@google.com> | 2014-03-07 17:33:12 -0800 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-03-07 17:33:12 -0800 |
commit | c5164cbc322e77c331fee199cc0359269e952b5d (patch) | |
tree | 61be324618eaabb0ca6e6aa2ae5db0c9f5cb3c52 /gdb | |
parent | c4a3fee29d3ba37f256fd57cecd071f61c552202 (diff) | |
download | gdb-c5164cbc322e77c331fee199cc0359269e952b5d.zip gdb-c5164cbc322e77c331fee199cc0359269e952b5d.tar.gz gdb-c5164cbc322e77c331fee199cc0359269e952b5d.tar.bz2 |
* dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b8fa584..bf9c0f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2014-03-07 Doug Evans <dje@google.com> + * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name. + +2014-03-07 Doug Evans <dje@google.com> + * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment. Remove unused local comp_dir_attr. Assert exactly one of stub_comp_unit_die, stub_comp_dir is non-NULL. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 92c7a83..705dc2d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -16449,7 +16449,7 @@ read_str_index (const struct die_reader_specs *reader, struct dwarf2_cu *cu, ULONGEST str_index) { struct objfile *objfile = dwarf2_per_objfile->objfile; - const char *dwo_name = objfile_name (objfile); + const char *objf_name = objfile_name (objfile); bfd *abfd = objfile->obfd; struct dwarf2_section_info *str_section = &reader->dwo_file->sections.str; struct dwarf2_section_info *str_offsets_section = @@ -16463,15 +16463,15 @@ read_str_index (const struct die_reader_specs *reader, if (str_section->buffer == NULL) error (_("%s used without .debug_str.dwo section" " in CU at offset 0x%lx [in module %s]"), - form_name, (long) cu->header.offset.sect_off, dwo_name); + form_name, (long) cu->header.offset.sect_off, objf_name); if (str_offsets_section->buffer == NULL) error (_("%s used without .debug_str_offsets.dwo section" " in CU at offset 0x%lx [in module %s]"), - form_name, (long) cu->header.offset.sect_off, dwo_name); + form_name, (long) cu->header.offset.sect_off, objf_name); if (str_index * cu->header.offset_size >= str_offsets_section->size) error (_("%s pointing outside of .debug_str_offsets.dwo" " section in CU at offset 0x%lx [in module %s]"), - form_name, (long) cu->header.offset.sect_off, dwo_name); + form_name, (long) cu->header.offset.sect_off, objf_name); info_ptr = (str_offsets_section->buffer + str_index * cu->header.offset_size); if (cu->header.offset_size == 4) @@ -16481,7 +16481,7 @@ read_str_index (const struct die_reader_specs *reader, if (str_offset >= str_section->size) error (_("Offset from %s pointing outside of" " .debug_str.dwo section in CU at offset 0x%lx [in module %s]"), - form_name, (long) cu->header.offset.sect_off, dwo_name); + form_name, (long) cu->header.offset.sect_off, objf_name); return (const char *) (str_section->buffer + str_offset); } |