gdb: remote SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION macro

Add a getter for a whether a symbol is a C++ template function.  Remove
the corresponding macro and adjust all callers.

Change-Id: I89abc2802a952b77b0e0eb73a25c2306cb8e8bcc
This commit is contained in:
Simon Marchi
2022-01-27 22:13:40 -05:00
parent 32177d6e39
commit f5abd8f234
2 changed files with 7 additions and 4 deletions

@ -519,7 +519,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
if (function != NULL && function->language () == language_cplus)
{
/* Search the function's template parameters. */
if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
if (function->is_cplus_template_function ())
{
struct template_symbol *templ
= (struct template_symbol *) function;