Replace wild_match with faster version and modify its interface.
authorPaul N. Hilfinger <hilfinger@adacore.com>
Mon, 4 Oct 2010 06:34:40 +0000 (06:34 +0000)
committerPaul N. Hilfinger <hilfinger@adacore.com>
Mon, 4 Oct 2010 06:34:40 +0000 (06:34 +0000)
commit73589123891e1c5ae9ee9c6e359a2a37133200de
tree7f90edf3a2d7be4d35354c784d7df3c78140b194
parent790c20f3f358afee041c54335081e4d877924ce3
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.
gdb/ChangeLog
gdb/ada-lang.c
gdb/dwarf2read.c
gdb/psymtab.c
gdb/symfile.h