gdb/
* dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
This commit is contained in:
parent
7ba86c9e66
commit
594e8718e7
|
@ -1,3 +1,7 @@
|
||||||
|
2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
|
||||||
|
|
||||||
2010-11-22 Tom Tromey <tromey@redhat.com>
|
2010-11-22 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (.PRECIOUS): Reference ada-lex.c.
|
* Makefile.in (.PRECIOUS): Reference ada-lex.c.
|
||||||
|
|
|
@ -1941,6 +1941,10 @@ dwarf2_read_index (struct objfile *objfile)
|
||||||
it seems better to just ignore such indices. */
|
it seems better to just ignore such indices. */
|
||||||
if (version < 3)
|
if (version < 3)
|
||||||
return 0;
|
return 0;
|
||||||
|
/* Indexes with higher version than the one supported by GDB may be no
|
||||||
|
longer backward compatible. */
|
||||||
|
if (version > 3)
|
||||||
|
return 0;
|
||||||
|
|
||||||
map = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct mapped_index);
|
map = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct mapped_index);
|
||||||
map->total_size = dwarf2_per_objfile->gdb_index.size;
|
map->total_size = dwarf2_per_objfile->gdb_index.size;
|
||||||
|
|
Loading…
Reference in New Issue