fix off by one error in test for error.
authorDavid Taylor <taylor@redhat.com>
Tue, 27 Feb 2001 21:57:09 +0000 (21:57 +0000)
committerDavid Taylor <taylor@redhat.com>
Tue, 27 Feb 2001 21:57:09 +0000 (21:57 +0000)
gdb/ChangeLog
gdb/symtab.c

index 72f9c9db58dfb4b9d743ab23f771015583fcbb6c..fcd0eda17e21da846b504666a89d3bb4195b3582 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb 27 16:56:13 2001  David Taylor  <taylor@redhat.com>
+
+       * symtab.c (search_symbols): Fix off by one error in test for
+       error.
+
 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
 
        * config/sparc/sp64linux.mt: New file.
@@ -538,6 +543,7 @@ Wed Feb  7 19:41:21 2001  Andrew Cagney  <cagney@redhat.com>
        (fill_fpregset): Likewise.
        (supply_fpregset): Likewise.
 
+>>>>>>> 1.973
 Tue Feb  6 11:58:57 2001  David Taylor  <taylor@redhat.com>
 
        * valops.c (value_cast): If casting a scalar to a pointer, do not
index 88155b014451c970e92431b3fe81b7995f4c68c7..50a0ef6ea07f9be3344865c612c90d1b53022e77 100644 (file)
@@ -2348,7 +2348,7 @@ search_symbols (char *regexp, namespace_enum kind, int nfiles, char *files[],
   struct symbol_search *tail;
   struct cleanup *old_chain = NULL;
 
-  if (kind < LABEL_NAMESPACE)
+  if (kind < VARIABLES_NAMESPACE)
     error ("must search on specific namespace");
 
   ourtype = types[(int) (kind - VARIABLES_NAMESPACE)];