Re: gdb: warn unused result for bfd IO functions
authorAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 23:26:12 +0000 (08:56 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 23:29:31 +0000 (08:59 +0930)
Add a missing return statement.

gdb/coff-pe-read.c

index 0d76ebdbfced846fb5e441823aef23cd06d1335d..56137ac4dd076a5caaeafedea12664ca3d8b3dbf 100644 (file)
@@ -402,6 +402,7 @@ read_pe_exported_syms (minimal_symbol_reader &reader,
       if (fail
          || bfd_seek (dll, secptr1, SEEK_SET) != 0
          || bfd_read (sname, sizeof (sname), dll) != sizeof (sname))
+       return maybe_print_debug_msg ();
 
       if ((strcmp (sname, ".edata") == 0)
          || (vaddr <= export_opthdrrva && export_opthdrrva < vaddr + vsize))