summaryrefslogtreecommitdiffstats
path: root/gdb
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2001-10-17 07:12:57 +0000
committerJason Molenda <jmolenda@apple.com>2001-10-17 07:12:57 +0000
commit1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d (patch)
treeafc8b38f940360a1df45be2bd77d93b710826a5d /gdb
parent15c1449b2593a7bbbca15b76576152e6e68efc7f (diff)
downloadppe42-binutils-1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d.tar.gz
ppe42-binutils-1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d.zip
* symtab.c (lookup_block_symbol): Break out of linear search
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symtab.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bb1ff06296..aea9dc1b71 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/symtab.c b/gdb/symtab.c
index b1a259013d..c0fa1e71ea 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -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++;
}
}
OpenPOWER on IntegriCloud