diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-16 12:33:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-20 09:28:12 -0600 |
commit | 496feb16f855347dbd30fa171a8dc1d97654ae8e (patch) | |
tree | 2ce2c71ec938c4aa5ebfb65f2c17043fbe7c193f /gdb/ada-lang.c | |
parent | a827b8ec32f9e0ed10b2bf647ce983db813a3d3c (diff) | |
download | gdb-496feb16f855347dbd30fa171a8dc1d97654ae8e.zip gdb-496feb16f855347dbd30fa171a8dc1d97654ae8e.tar.gz gdb-496feb16f855347dbd30fa171a8dc1d97654ae8e.tar.bz2 |
Add accessors for symbol's artificial field
For a series I'm experimenting with, it was handy to hide a symbol's
"artificial" field behind accessors. This patch is the result.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 7623d0e..9649453 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -3854,7 +3854,7 @@ ada_resolve_variable (struct symbol *sym, const struct block *block, candidates.end (), [] (block_symbol &bsym) { - return bsym.symbol->artificial; + return bsym.symbol->is_artificial (); }), candidates.end ()); @@ -13456,9 +13456,9 @@ public: } /* See language.h. */ - virtual bool symbol_printing_suppressed (struct symbol *symbol) const override + bool symbol_printing_suppressed (struct symbol *symbol) const override { - return symbol->artificial; + return symbol->is_artificial (); } /* See language.h. */ |