PR symtab/18258
authorDoug Evans <dje@google.com>
Wed, 27 May 2015 18:50:38 +0000 (11:50 -0700)
committerDoug Evans <dje@google.com>
Wed, 27 May 2015 18:50:38 +0000 (11:50 -0700)
commitb2e2f908b863c27abb00108a03ebe2598baec55c
tree2d80ad0c354497e91d57aafadaf2d438cb0eb352
parentf62fce356bf1df27e01fc40a3a277fc924019ee7
PR symtab/18258

gdb/ChangeLog:

* block.c (block_find_symbol): New function.
(block_find_non_opaque_type): Ditto.
(block_find_non_opaque_type_preferred): Ditto.
* block.h (block_symbol_matcher_ftype): New typedef.
(block_find_symbol): Declare.
(block_find_non_opaque_type): Ditto.
(block_find_non_opaque_type_preferred): Ditto.
* dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
* psymtab.c (psym_lookup_symbol): Ditto.
* symtab.c (basic_lookup_transparent_type_1): New function.
(basic_lookup_transparent_type): Call it.

gdb/testsuite/ChangeLog:

* gdb.dwarf2/opaque-type-lookup-2.c: New file.
* gdb.dwarf2/opaque-type-lookup.c: New file.
* gdb.dwarf2/opaque-type-lookup.exp: New file.
gdb/ChangeLog
gdb/block.c
gdb/block.h
gdb/dwarf2read.c
gdb/psymtab.c
gdb/symtab.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/opaque-type-lookup-2.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/opaque-type-lookup.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp [new file with mode: 0644]