From: Tom de Vries Date: Fri, 15 Jul 2022 10:31:12 +0000 (+0200) Subject: [gdb/symtab] Add early-out in process_queue X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80a527c1c9a9962ef345abe08d9e97d33b4a5686;p=thirdparty%2Fbinutils-gdb.git [gdb/symtab] Add early-out in process_queue Don't print "Expanding one or more symtabs of objfile" if the queue is empty. --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index e9e98b3000c..769d4a36683 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -7564,6 +7564,9 @@ maybe_queue_comp_unit (struct dwarf2_cu *dependent_cu, static void process_queue (dwarf2_per_objfile *per_objfile) { + if (per_objfile->queue->empty ()) + return; + dwarf_read_debug_printf ("Expanding one or more symtabs of objfile %s ...", objfile_name (per_objfile->objfile));