gdb: replace some calls to internal_error with gdb_assert
[deliverable/binutils-gdb.git] / gdb / psymtab.c
index 26c55e9bd334a4a5f5bfeca228858d1efb5d1412..129eecb067119291bd98aea86355831d8ab13867 100644 (file)
@@ -683,9 +683,9 @@ lookup_partial_symbol (struct objfile *objfile,
       while (top > bottom)
        {
          center = bottom + (top - bottom) / 2;
-         if (!(center < top))
-           internal_error (__FILE__, __LINE__,
-                           _("failed internal consistency check"));
+
+         gdb_assert (center < top);
+
          if (strcmp_iw_ordered ((*center)->ginfo.search_name (),
                                 lookup_name.c_str ()) >= 0)
            {
@@ -696,9 +696,8 @@ lookup_partial_symbol (struct objfile *objfile,
              bottom = center + 1;
            }
        }
-      if (!(top == bottom))
-       internal_error (__FILE__, __LINE__,
-                       _("failed internal consistency check"));
+
+      gdb_assert (top == bottom);
 
       /* For `case_sensitivity == case_sensitive_off' strcmp_iw_ordered will
         search more exactly than what matches SYMBOL_MATCHES_SEARCH_NAME.  */
This page took 0.037131 seconds and 4 git commands to generate.