From 796a7ff8234cfaa8ad1ab884c1c8dafe29b18d42 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 23 Jan 2013 18:47:51 +0000 Subject: Work around binutils/15021. * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and type_unit_group out of union s. All uses updated. (read_index_from_section): Watch for index version 8. (follow_die_sig): If using .gdb_index version <= 7, record the TU as an imported symtab. (write_psymtabs_to_index): Increment version number to 8. doc/ * gdb.texinfo (Index Section Format): Document .gdb_index version 8. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 662ec6d..c09e2ff 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2013-01-23 Doug Evans + + * gdb.texinfo (Index Section Format): Document .gdb_index version 8. + 2013-01-21 Marc Khouzam * gdb.texinfo (GDB/MI Breakpoint Commands): Document new diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index ba25aac..61e9190 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -41050,12 +41050,18 @@ unless otherwise noted: @enumerate @item -The version number, currently 7. Versions 1, 2 and 3 are obsolete. +The version number, currently 8. Versions 1, 2 and 3 are obsolete. Version 4 uses a different hashing function from versions 5 and 6. Version 6 includes symbols for inlined functions, whereas versions 4 and 5 do not. Version 7 adds attributes to the CU indices in the -symbol table. @value{GDBN} will only read version 4, 5, or 6 indices +symbol table. Version 8 specifies that symbols from DWARF type units +(@samp{DW_TAG_type_unit}) refer to the type unit's symbol table and not the +compilation unit (@samp{DW_TAG_comp_unit}) using the type. + +@value{GDBN} will only read version 4, 5, or 6 indices by specifying @code{set use-deprecated-index-sections on}. +GDB has a workaround for potentially broken version 7 indices so it is +currently not flagged as deprecated. @item The offset, from the start of the file, of the CU list. -- cgit v1.1