diff --git a/gdb-port/tests/integration/test_stack_frame_parser_context.py b/gdb-port/tests/integration/test_stack_frame_parser_context.py index 48f8faf12729ce7d165e7a363f721f0ee398b689..57834afa973300d7e01281a82de908c3b48ab664 100644 --- a/gdb-port/tests/integration/test_stack_frame_parser_context.py +++ b/gdb-port/tests/integration/test_stack_frame_parser_context.py @@ -5,6 +5,9 @@ class TestContextBasedAllocationAttribution(unittest.TestCase): self.a = Parser("a", 128) self.b = Parser("b", 32) self.top_level_parse = TopLevelParse() + self.top_level_parse.parser_objs[32] = self.b + self.top_level_parse.parser_objs[128] = self.a + # TODO: the above two lines simulate a side effect of enter_h_do_parse. could be avoided if self.a and self.b was assigned after the calls below self.top_level_parse.enter_h_packrat_parse(self.a.address)