]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/symtab] Add early-out in process_queue
authorTom de Vries <tdevries@suse.de>
Fri, 15 Jul 2022 10:31:12 +0000 (12:31 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 21 Jul 2022 13:06:39 +0000 (15:06 +0200)
Don't print "Expanding one or more symtabs of objfile" if the queue is empty.

gdb/dwarf2/read.c

index e9e98b3000cbdfa23282cbcd40dadb03e3ee8f67..769d4a3668339c1302f5e1f0f060116a053b9e2c 100644 (file)
@@ -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));