Add symbol::matches method
authorTom Tromey <tom@tromey.com>
Tue, 14 Mar 2023 22:56:38 +0000 (16:56 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 31 Aug 2023 18:41:02 +0000 (12:41 -0600)
commit911e1e795e2496e1a5315601ab89e56afcd10fb0
tree6238e7783a5cf642c10652b3651c85768781c22a
parent8c329d5c651e671f9aa9ed87224dc9943a7f76e6
Add symbol::matches method

This adds symbol::matches, a wrapper for symbol_matches_domain.  Most
places calling symbol_matches_domain can call this method instead,
which is a bit less wordy and also (IMO) clearer.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/ada-lang.c
gdb/block.c
gdb/linespec.c
gdb/symtab.c
gdb/symtab.h