aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-12-19 11:25:48 -0700
committerTom Tromey <tromey@adacore.com>2023-05-12 13:25:28 -0600
commit36ed3d84e0ac1b6f21e68c742d72061ff51cb76b (patch)
tree6dfb69c6951f5ccbc27d9ba96603427938b23974 /gdb/symtab.c
parentbb051d7a307ee7a53905d1d1cb08f30f70eeba3f (diff)
downloadbinutils-36ed3d84e0ac1b6f21e68c742d72061ff51cb76b.zip
binutils-36ed3d84e0ac1b6f21e68c742d72061ff51cb76b.tar.gz
binutils-36ed3d84e0ac1b6f21e68c742d72061ff51cb76b.tar.bz2
Introduce symbol_block_ops::get_block_value
This adds a new callback to symbol_block_ops. This callback lets a LOC_BLOCK symbol implement its own function to find the underlying block.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 8ace6ae..4f28667 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -6412,7 +6412,8 @@ register_symbol_block_impl (enum address_class aclass,
/* Sanity check OPS. */
gdb_assert (ops != NULL);
- gdb_assert (ops->find_frame_base_location != NULL);
+ gdb_assert (ops->find_frame_base_location != nullptr
+ || ops->get_block_value != nullptr);
return result;
}