diff options
author | Tom de Vries <tdevries@suse.de> | 2022-07-15 12:31:12 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-07-21 15:06:39 +0200 |
commit | 80a527c1c9a9962ef345abe08d9e97d33b4a5686 (patch) | |
tree | f935b1597fd2ebc1fa18e593baf9caa331cb507a | |
parent | 9ce66f579aac7337e99098ad92b0c87975add048 (diff) | |
download | binutils-80a527c1c9a9962ef345abe08d9e97d33b4a5686.zip binutils-80a527c1c9a9962ef345abe08d9e97d33b4a5686.tar.gz binutils-80a527c1c9a9962ef345abe08d9e97d33b4a5686.tar.bz2 |
[gdb/symtab] Add early-out in process_queue
Don't print "Expanding one or more symtabs of objfile" if the queue is empty.
-rw-r--r-- | gdb/dwarf2/read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index e9e98b3..769d4a3 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)); |