* symtab.c (lookup_block_symbol): Break out of linear search
authorJason Molenda <jmolenda@apple.com>
Wed, 17 Oct 2001 07:12:57 +0000 (07:12 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 17 Oct 2001 07:12:57 +0000 (07:12 +0000)
        if we're past the range of possible matches.

Original patch submission, with links to history/background behind it,
here:
http://sources.redhat.com/ml/gdb-patches/2001-09/msg00120.html

gdb/ChangeLog
gdb/symtab.c

index bb1ff062966ec1b4d168bcc06dcce8ad7f22df24..aea9dc1b71504ae09c57f8aa1c2e712a8814f865 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-17  Jason Molenda  (jason-cl@molenda.com)
+
+       * symtab.c (lookup_block_symbol):  Break out of linear search
+        if we're past the range of possible matches.
+
 2001-10-16  Christopher Faylor  <cgf@redhat.com>
 
        * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
index b1a259013dcacc82a52b8bb61076beb8c074bada..c0fa1e71ea455ab69f57cc1d1f69c21e844678b2 100644 (file)
@@ -1211,6 +1211,10 @@ lookup_block_symbol (register const struct block *block, const char *name,
            {
              return sym;
            }
+          if (SYMBOL_SOURCE_NAME (sym)[0] > name[0])
+            {
+              break;
+            }
          bot++;
        }
     }
This page took 0.029966 seconds and 4 git commands to generate.