diff options
Diffstat (limited to 'gdb/symfile-debug.c')
-rw-r--r-- | gdb/symfile-debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c index da3439d7928..55865ab03b0 100644 --- a/gdb/symfile-debug.c +++ b/gdb/symfile-debug.c @@ -328,7 +328,7 @@ objfile::find_compunit_symtab_by_address (CORE_ADDR address) hex_string (address)); struct compunit_symtab *result = NULL; - if (qf != nullptr && qf->find_compunit_symtab_by_address != NULL) + if (qf != nullptr) result = qf->find_compunit_symtab_by_address (this, address); if (debug_symfile) @@ -348,7 +348,7 @@ objfile::lookup_global_symbol_language (const char *name, { enum language result = language_unknown; - if (qf != nullptr && qf->lookup_global_symbol_language != nullptr) + if (qf != nullptr) result = qf->lookup_global_symbol_language (this, name, domain, symbol_found_p); else |