aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symfile-debug.c')
-rw-r--r--gdb/symfile-debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index a10af68..f3d5a68 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -405,6 +405,9 @@ objfile::expand_symtabs_matching
domain_enum domain,
enum search_domain kind)
{
+ /* This invariant is documented in quick-functions.h. */
+ gdb_assert (lookup_name != nullptr || symbol_matcher == nullptr);
+
if (debug_symfile)
fprintf_filtered (gdb_stdlog,
"qf->expand_symtabs_matching (%s, %s, %s, %s, %s)\n",