aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-14 17:26:11 +0000
committerPedro Alves <palves@redhat.com>2010-04-14 17:26:11 +0000
commit516ba659387ce98c4ff28b88a7f00f5003cac9eb (patch)
treec896f42701f1bd92109ca4e91a8ad59c2077374d /gdb/elfread.c
parent048d532d6e774418e2e7b40b645b4c249f636aa4 (diff)
downloadgdb-516ba659387ce98c4ff28b88a7f00f5003cac9eb.zip
gdb-516ba659387ce98c4ff28b88a7f00f5003cac9eb.tar.gz
gdb-516ba659387ce98c4ff28b88a7f00f5003cac9eb.tar.bz2
* objfiles.h (gdb_bfd_close_or_warn): Declare.
* objfiles.c (gdb_bfd_close_or_warn): New. * corelow.c: Include objfiles.h (core_close): Use gdb_bfd_close_or_warn. * elfread.c (build_id_verify): Ditto. * exec.c (exec_close, exec_close_1): Ditto.
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);