aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-05-24 22:14:36 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-05-24 22:14:36 +0000
commitbfb05775e68c415e976761e14608485facfaefcf (patch)
tree767d8f95befa3b7f5bc09a92952e0da88bf97f3c /gdb/symfile.h
parent685b110556624dff5bd9614edb016bad9b0642fc (diff)
downloadgdb-bfb05775e68c415e976761e14608485facfaefcf.zip
gdb-bfb05775e68c415e976761e14608485facfaefcf.tar.gz
gdb-bfb05775e68c415e976761e14608485facfaefcf.tar.bz2
gdb/
* psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use it as a fallback for TYPE_IS_OPAQUE. * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE symbols for lookup_symbol. gdb/testsuite/ * gdb.dwarf2/dw2-icc-opaque.S: Add debug_info_seg3 and .debug_abbrev_seg3.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 8e83741..ba68d4a 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -182,7 +182,9 @@ struct quick_symbol_functions
indicates what sort of symbol to search for.
Returns the newly-expanded symbol table in which the symbol is
- defined, or NULL if no such symbol table exists. */
+ defined, or NULL if no such symbol table exists. If OBJFILE
+ contains !TYPE_OPAQUE symbol prefer its symtab. If it contains
+ only TYPE_OPAQUE symbol(s), return at least that symtab. */
struct symtab *(*lookup_symbol) (struct objfile *objfile,
int kind, const char *name,
domain_enum domain);