diff options
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index f6e24758009..b7aae1bed14 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2923,6 +2923,14 @@ find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section) if (!in_range_p) continue; + if (BLOCKVECTOR_MAP (bv)) + { + if (addrmap_find (BLOCKVECTOR_MAP (bv), pc) == nullptr) + continue; + + return cust; + } + CORE_ADDR range = end - start; if (best_cust != nullptr && range >= best_cust_range) |