On 10/20/23 21:50, Tom Tromey wrote: >>>>>> "Tom" == Tom de Vries via Gdb-patches writes: > > Tom> Factor out usage of cooked_indexer::m_die_range_map into new class parent_map > Tom> with member functions find_parent and set_parent. > > Tom> + /* Find the parent of DIE LOOKUP. */ > Tom> + const cooked_index_entry *find_parent (CORE_ADDR lookup) const > Tom> + { > > I sort of regret doing this stuff using CORE_ADDR. I think the API > would be better if 'form_addr' was handled privately in the wrapper > class. This updated patch moves form_addr into the wrapper class, but doesn't make it private because there's still one remaining reference from outside the class. WDYT? Thanks, - Tom