diff options
author | Tom Tromey <tromey@redhat.com> | 2012-05-18 14:26:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-05-18 14:26:26 +0000 |
commit | 9703b51377ca945155cb74f09761fe6fb0431613 (patch) | |
tree | cbdbb10c06ff4fb5d9b973ee1312dcf1521e0ab7 /gdb/psymtab.c | |
parent | 5a4398495b075cef77112aed5e98a6dddf3ee5b8 (diff) | |
download | gdb-9703b51377ca945155cb74f09761fe6fb0431613.zip gdb-9703b51377ca945155cb74f09761fe6fb0431613.tar.gz gdb-9703b51377ca945155cb74f09761fe6fb0431613.tar.bz2 |
* psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
directly corresponding to the found psymtab.
* dwarf2read.c (recursively_find_pc_sect_symtab): New function.
(dw2_find_pc_sect_symtab): Use it.
* block.h (blockvector_contains_pc): Declare.
* block.c (find_block_in_blockvector): New function.
(blockvector_for_pc_sect): Use it.
(blockvector_contains_pc): New function.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 814023e..e463fff 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -397,7 +397,8 @@ find_pc_sect_symtab_from_partial (struct objfile *objfile, warning (_("\ (Internal error: pc %s in read in psymtab, but not in symtab.)\n"), paddress (get_objfile_arch (ps->objfile), pc)); - return psymtab_to_symtab (ps); + psymtab_to_symtab (ps); + return ps->symtab; } return NULL; } |