aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index fa77fc1..ca3b1a4 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1226,6 +1226,10 @@ enum symbol_subclass_kind
extern gdb::array_view<const struct symbol_impl> symbol_impls;
+bool symbol_matches_domain (enum language symbol_language,
+ domain_enum symbol_domain,
+ domain_enum domain);
+
/* This structure is space critical. See space comments at the top. */
struct symbol : public general_symbol_info, public allocate_on_obstack
@@ -1272,6 +1276,13 @@ struct symbol : public general_symbol_info, public allocate_on_obstack
return this->impl ().aclass;
}
+ /* Call symbol_matches_domain on this symbol, using the symbol's
+ domain. */
+ bool matches (domain_enum d) const
+ {
+ return symbol_matches_domain (language (), domain (), d);
+ }
+
domain_enum domain () const
{
return m_domain;
@@ -2021,10 +2032,6 @@ extern const char multiple_symbols_cancel[];
const char *multiple_symbols_select_mode (void);
-bool symbol_matches_domain (enum language symbol_language,
- domain_enum symbol_domain,
- domain_enum domain);
-
/* lookup a symbol table by source file name. */
extern struct symtab *lookup_symtab (const char *);