diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-09 15:20:38 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-09 15:20:38 +0000 |
commit | b4f2f049b185f79cd2319351e78c8b9c8f97c0f0 (patch) | |
tree | 2cc33d658fec1668e7fe90c92e82e53e21f5870b | |
parent | 2351cae0524f958e786b8cdeebe0efea8ef3fda4 (diff) | |
download | gdb-b4f2f049b185f79cd2319351e78c8b9c8f97c0f0.zip gdb-b4f2f049b185f79cd2319351e78c8b9c8f97c0f0.tar.gz gdb-b4f2f049b185f79cd2319351e78c8b9c8f97c0f0.tar.bz2 |
gdb/
Fix crash of gdb save-index on a STABS file.
* dwarf2read.c (write_psymtabs_to_index): Return also on no
PSYMTABS_ADDRMAP.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 038c56b..7da8c9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> + Fix crash of gdb save-index on a STABS file. + * dwarf2read.c (write_psymtabs_to_index): Return also on no + PSYMTABS_ADDRMAP. + +2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> + Fix DW_AT_accessibility compatibility with gcc-4.6+. * dwarf2read.c: Include ctype.h. (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 15311fe..5bf98de 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -15843,8 +15843,9 @@ write_psymtabs_to_index (struct objfile *objfile, const char *dir) htab_t cu_index_htab; struct psymtab_cu_index_map *psymtab_cu_index_map; - if (!objfile->psymtabs) + if (!objfile->psymtabs || !objfile->psymtabs_addrmap) return; + if (dwarf2_per_objfile->using_index) error (_("Cannot use an index to create the index")); |