OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Wed, 15 Sep 2010 06:28:52 +0000 (06:28 +0000)
committerjkratoch <jkratoch>
Wed, 15 Sep 2010 06:28:52 +0000 (06:28 +0000)
* dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
Update the comment.

gdb/ChangeLog
gdb/dwarf2read.c

index b6ff84a..d82b4cc 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
+       Update the comment.
+
 2010-09-14  Tom Tromey  <tromey@redhat.com>
 
        PR symtab/8399:
index d7691cb..470a3f5 100644 (file)
@@ -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