[PATCH] Add symbol::matches method

Simon Marchi simon.marchi@polymtl.ca
Thu Aug 31 17:13:20 GMT 2023


On 8/29/23 16:00, Tom Tromey wrote:
> 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.

This looks nicer indeed.  I checked if we could get rid of
symbol_matches_domain (just put the implementation in symbol::matches),
but that doesn't seem possible, other things use symbol_matches_domain
without a struct symbol.

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon


More information about the Gdb-patches mailing list