diff options
author | Paul N. Hilfinger <hilfinger@adacore.com> | 2010-10-04 06:34:40 +0000 |
---|---|---|
committer | Paul N. Hilfinger <hilfinger@adacore.com> | 2010-10-04 06:34:40 +0000 |
commit | 73589123891e1c5ae9ee9c6e359a2a37133200de (patch) | |
tree | 7f90edf3a2d7be4d35354c784d7df3c78140b194 /gdb/dwarf2read.c | |
parent | 790c20f3f358afee041c54335081e4d877924ce3 (diff) | |
download | gdb-73589123891e1c5ae9ee9c6e359a2a37133200de.zip gdb-73589123891e1c5ae9ee9c6e359a2a37133200de.tar.gz gdb-73589123891e1c5ae9ee9c6e359a2a37133200de.tar.bz2 |
Replace wild_match with faster version and modify its interface.
This new version of wild_match is comparable in speed to strcmp_iw, and has
the same signature and same return value for equal names.
gdb/ChangeLog:
* ada-lang.c (wild_match): Reimplement.
Change API to eliminate unused length argument, reverse arguments and
make 0 the 'true' return value.
(advance_wild_match): New auxiliary function for wild_match to improve
readability.
(ada_match_name, ada_add_block_symbols): Use new API for wild_match.
* psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
API for wild_match.
* symfile.h (map_ada_symtabs): Modify declaration to use new API for
wild_match.
* dwarf2read.c (dw2_map_ada_symtabs): Ditto.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 302f81f..e48f91e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2359,7 +2359,7 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name) static void dw2_map_ada_symtabs (struct objfile *objfile, - int (*wild_match) (const char *, int, const char *), + int (*wild_match) (const char *, const char *), int (*is_name_suffix) (const char *), void (*callback) (struct objfile *, struct symtab *, void *), |