From f5abd8f234426bbe8ccd08c43e6ae7cbe635e042 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 27 Jan 2022 22:13:40 -0500 Subject: 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 --- gdb/cp-namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/cp-namespace.c') diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 6130381..8fb2f71 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -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; -- cgit v1.1