projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8224d
)
Re: gdb: warn unused result for bfd IO functions
author
Alan Modra
<amodra@gmail.com>
Sat, 12 Aug 2023 23:26:12 +0000
(08:56 +0930)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/gdb/coff-pe-read.c
b/gdb/coff-pe-read.c
index 0d76ebdbfced846fb5e441823aef23cd06d1335d..56137ac4dd076a5caaeafedea12664ca3d8b3dbf 100644
(file)
--- 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))