Expanding compunit_symtabs based on conservative text address range
Jan Vrany via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, while working on V3 of Python JIT API [1]. This API allows one to create a new compunit (struct compunit_symtab*) and "add" to existing obfile. I'd like to ensure that this new compunit does not overlaps with existing ones and I realized that I need to "expand" compunits before doing this check. To avoid simply expand_all_symtabs(), I'm trying to introduce new "quick function" - expand_symtabs_maybe_overlapping(objf, start, end) - to expand those that may overlap prior real check. For partial symbol functions this seems to be straightfoward, just check the range overlaps with [psymtab->text_low (objfile), psymtab- >text_high (objfile)) range. But for dwarf2_base_index_functions I'm at loss. Is there any better way than expanding all? Or maybe there's a better approach to this problem? Thanks! Jan [1]: https://inbox.sourceware.org/gdb-patches/[email protected]/