[gdb/symtab] Use early continue in find_pc_sect_compunit_symtab
authorTom de Vries <tdevries@suse.de>
Tue, 27 Oct 2020 12:28:27 +0000 (13:28 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 27 Oct 2020 12:28:27 +0000 (13:28 +0100)
commit61eb46a4fb2d7e9aeae3830f9eb31f17592ba93c
treef44483355a3f162358cafe4236a58e2d208fe123
parent733d554a4625db4ffb89b7a20e1cf27ab071ef4d
[gdb/symtab] Use early continue in find_pc_sect_compunit_symtab

Function find_pc_sect_compunit_symtab contains a loop:
...
  for (compunit_symtab *cust : obj_file->compunits ())
    {
      ...
      if (...)
        {
          /* Lots of code.  */
        }
    }
...

Reduce indentation level and improve readability by using early continue.

Tested on x86_64-linux.

gdb/ChangeLog:

2020-10-27  Tom de Vries  <tdevries@suse.de>

* symtab.c (find_pc_sect_compunit_symtab): Use early continue.
gdb/ChangeLog
gdb/symtab.c