diff options
author | Pedro Alves <palves@redhat.com> | 2010-04-14 17:26:11 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-04-14 17:26:11 +0000 |
commit | 516ba659387ce98c4ff28b88a7f00f5003cac9eb (patch) | |
tree | c896f42701f1bd92109ca4e91a8ad59c2077374d /gdb/objfiles.h | |
parent | 048d532d6e774418e2e7b40b645b4c249f636aa4 (diff) | |
download | gdb-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/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index df78c6d..76410fd 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -533,6 +533,7 @@ extern void *objfile_data (struct objfile *objfile, extern struct bfd *gdb_bfd_ref (struct bfd *abfd); extern void gdb_bfd_unref (struct bfd *abfd); +extern int gdb_bfd_close_or_warn (struct bfd *abfd); /* Traverse all object files in the current program space. |