aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-13 08:56:12 +0930
committerAlan Modra <amodra@gmail.com>2023-08-13 08:59:31 +0930
commitec2479e820c32ef443382a622a1d555a71730f64 (patch)
tree6b691135ddcf2d3f26ba14110f75c8f5aaf37886
parent8c8224dc1637a3e695c17e4c1026247196813c48 (diff)
downloadgdb-ec2479e820c32ef443382a622a1d555a71730f64.zip
gdb-ec2479e820c32ef443382a622a1d555a71730f64.tar.gz
gdb-ec2479e820c32ef443382a622a1d555a71730f64.tar.bz2
Re: gdb: warn unused result for bfd IO functions
Add a missing return statement.
-rw-r--r--gdb/coff-pe-read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index 0d76ebd..56137ac 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -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))