diff options
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 4672ac3..d2146bb 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2431,6 +2431,19 @@ find_pc_line (CORE_ADDR pc, int notcurrent) pc = overlay_mapped_address (pc, section); return find_pc_sect_line (pc, section, notcurrent); } + +/* See symtab.h. */ + +struct symtab * +find_pc_line_symtab (CORE_ADDR pc) +{ + struct symtab_and_line sal; + + /* This always passes zero for NOTCURRENT to find_pc_line. + There are currently no callers that ever pass non-zero. */ + sal = find_pc_line (pc, 0); + return sal.symtab; +} /* Find line number LINE in any symtab whose name is the same as SYMTAB. |