Convert contained_in to method

This converts contained_in to be a method of block.
This commit is contained in:
Tom Tromey
2023-01-20 07:46:51 -07:00
parent b32797e8b9
commit 0d1912950e
8 changed files with 20 additions and 22 deletions

View File

@@ -5149,7 +5149,7 @@ watchpoint_check (bpstat *bs)
function = get_frame_function (fr);
if (function == NULL
|| !contained_in (b->exp_valid_block, function->value_block ()))
|| !function->value_block ()->contains (b->exp_valid_block))
within_current_scope = false;
}