* gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3.

This commit is contained in:
Julian Brown 2006-06-09 00:44:28 +00:00
parent 5b031165ba
commit 2b949cb6bb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
Julian Brown <julian@codesourcery.com>
* gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
2006-06-09 Julian Brown <julian@codesourcery.com>
* MAINTAINERS (Write After Approval): Add myself.

View File

@ -1304,7 +1304,7 @@ partial_read_comp_unit_head (struct comp_unit_head *header, gdb_byte *info_ptr,
info_ptr = read_comp_unit_head (header, info_ptr, abfd);
if (header->version != 2)
if (header->version != 2 && header->version != 3)
error (_("Dwarf Error: wrong version in compilation unit header "
"(is %d, should be %d) [in module %s]"), header->version,
2, bfd_get_filename (abfd));