diff options
author | Julian Brown <julian@codesourcery.com> | 2006-06-09 00:44:28 +0000 |
---|---|---|
committer | Julian Brown <julian@codesourcery.com> | 2006-06-09 00:44:28 +0000 |
commit | 2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5 (patch) | |
tree | dc41de6ef8f13be92cdff2a1d0d4f6f1b8ff290a | |
parent | 5b031165ba273df6bc224e2b8d80cc2cec478adb (diff) | |
download | gdb-2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5.zip gdb-2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5.tar.gz gdb-2b949cb6bbbb2e8a968026c0a0dfe378e7d1bfa5.tar.bz2 |
* gdb/dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ff7d56..97123d4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. 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)); |