aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 38b6208..42a1b73 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -618,9 +618,7 @@ build_id_verify (const char *filename, struct build_id *check)
else
retval = 1;
- if (!bfd_close (abfd))
- warning (_("cannot close \"%s\": %s"), filename,
- bfd_errmsg (bfd_get_error ()));
+ gdb_bfd_close_or_warn (abfd);
xfree (found);