aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/read.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-01-19 15:32:32 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-01-19 21:51:56 -0500
commit7ae24327467750c445733e40d840e502795dbdf3 (patch)
tree48df8ef02f8194822d45d273ac6c92ae6d281103 /gdb/dwarf2/read.c
parent4a2318c9858fdb1899157339f526df3d20e43cfe (diff)
downloadbinutils-7ae24327467750c445733e40d840e502795dbdf3.zip
binutils-7ae24327467750c445733e40d840e502795dbdf3.tar.gz
binutils-7ae24327467750c445733e40d840e502795dbdf3.tar.bz2
gdb: remove SYMBOL_*_OPS macros
Remove SYMBOL_BLOCK_OPS, SYMBOL_COMPUTED_OPS and SYMBOL_REGISTER_OPS, in favor of methods on struct symbol. More changes could be done here to improve the design and make things safer, but I just wanted to do a straightforward change to remove the macros for now. Change-Id: I27adb74a28ea3c0dc9a85c2953413437cd95ad21 Reviewed-by: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gdb/dwarf2/read.c')
-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 6be8f81..bdfda31 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -18685,7 +18685,7 @@ var_decode_location (struct attribute *attr, struct symbol *sym,
dwarf2_symbol_mark_computed (attr, sym, cu, 0);
- if (SYMBOL_COMPUTED_OPS (sym)->location_has_loclist)
+ if (sym->computed_ops ()->location_has_loclist)
cu->has_loclist = true;
}