aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-16 12:33:56 -0600
committerTom Tromey <tom@tromey.com>2022-04-20 09:28:12 -0600
commit496feb16f855347dbd30fa171a8dc1d97654ae8e (patch)
tree2ce2c71ec938c4aa5ebfb65f2c17043fbe7c193f /gdb/dwarf2
parenta827b8ec32f9e0ed10b2bf647ce983db813a3d3c (diff)
downloadgdb-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/dwarf2')
-rw-r--r--gdb/dwarf2/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index bb5b636..b7b372f 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -20634,7 +20634,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu,
/* Handle DW_AT_artificial. */
attr = dwarf2_attr (die, DW_AT_artificial, cu);
if (attr != nullptr)
- sym->artificial = attr->as_boolean ();
+ sym->set_is_artificial (attr->as_boolean ());
/* Default assumptions.
Use the passed type or decode it from the die. */