aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2006-06-09 00:44:28 +0000
committerJulian Brown <julian@codesourcery.com>2006-06-09 00:44:28 +0000
commit2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5 (patch)
treedc41de6ef8f13be92cdff2a1d0d4f6f1b8ff290a /gdb/dwarf2read.c
parent5b031165ba273df6bc224e2b8d80cc2cec478adb (diff)
downloadgdb-2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5.zip
gdb-2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5.tar.gz
gdb-2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5.tar.bz2
* gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index b776a57..057df7d 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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));