forked from Imagelibrary/binutils-gdb
* ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
if possible. * dwarf2read.c (read_func_scope): Remove old FIXME. * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS, not LOC_COMPUTED. * findvar.c (symbol_read_needs_frame, default_read_var_value): Unconditionally call via computed ops, if possible. * printcmd.c (address_info): Unconditionally call via computed ops, if possible. * stack.c (read_frame_arg): Unconditionally call via computed ops, if possible. * symtab.c (register_symbol_computed_impl): Sanity check 'ops'. * tracepoint.c (scope_info): Unconditionally call via computed ops, if possible.
This commit is contained in:
@@ -5053,6 +5053,13 @@ register_symbol_computed_impl (enum address_class aclass,
|
||||
symbol_impl[result].aclass = aclass;
|
||||
symbol_impl[result].ops_computed = ops;
|
||||
|
||||
/* Sanity check OPS. */
|
||||
gdb_assert (ops != NULL);
|
||||
gdb_assert (ops->tracepoint_var_ref != NULL);
|
||||
gdb_assert (ops->describe_location != NULL);
|
||||
gdb_assert (ops->read_needs_frame != NULL);
|
||||
gdb_assert (ops->read_variable != NULL);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user