From a9e6a4bb4e112347cca6fa42dbc95a22aa76b798 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 14 Sep 2010 21:28:53 +0000 Subject: [PATCH] gdb/ * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. Update the comment. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6ff84a96d0..d82b4cce673 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-09-14 Jan Kratochvil + + * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. + Update the comment. + 2010-09-14 Tom Tromey PR symtab/8399: diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index d7691cb5cab..470a3f51d10 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2369,10 +2369,9 @@ dw2_map_ada_symtabs (struct objfile *objfile, domain_enum namespace, int wild, void *data) { - /* For now, we don't support Ada, so this function can't be - reached. */ - internal_error (__FILE__, __LINE__, - _("map_ada_symtabs called via index method")); + /* For now, we don't support Ada. Still the function can be called if the + current language is Ada for a non-Ada objfile using GNU index. As Ada + does not look for non-Ada symbols this function should just return. */ } static void -- 2.30.2