From 08d2cd740c0c9ca78c849cf14e3470f0b8823139 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 23 Jul 2012 15:03:59 +0000 Subject: [PATCH] * symfile.c (separate_debug_file_exists): Update. (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote. (reread_symbols): Update. * elfread.c (build_id_verify): Update. * symfile.h (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote. --- gdb/ChangeLog | 9 +++++++++ gdb/elfread.c | 2 +- gdb/symfile.c | 6 +++--- gdb/symfile.h | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0f7f24a0702..c07c9db8256 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2012-07-23 Tom Tromey + + * symfile.c (separate_debug_file_exists): Update. + (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote. + (reread_symbols): Update. + * elfread.c (build_id_verify): Update. + * symfile.h (gdb_bfd_open_maybe_remote): Rename from + bfd_open_maybe_remote. + 2012-07-23 Tom Tromey * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment. diff --git a/gdb/elfread.c b/gdb/elfread.c index 608a8682d83..22ac158a593 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1109,7 +1109,7 @@ build_id_verify (const char *filename, struct build_id *check) int retval = 0; /* We expect to be silent on the non-existing files. */ - abfd = bfd_open_maybe_remote (filename); + abfd = gdb_bfd_open_maybe_remote (filename); if (abfd == NULL) return 0; diff --git a/gdb/symfile.c b/gdb/symfile.c index e1d5c15d412..7a913e97a91 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1353,7 +1353,7 @@ separate_debug_file_exists (const char *name, unsigned long crc, if (filename_cmp (name, parent_objfile->name) == 0) return 0; - abfd = bfd_open_maybe_remote (name); + abfd = gdb_bfd_open_maybe_remote (name); if (!abfd) return 0; @@ -1697,7 +1697,7 @@ set_initial_language (void) returns NULL with the BFD error set. */ bfd * -bfd_open_maybe_remote (const char *name) +gdb_bfd_open_maybe_remote (const char *name) { bfd *result; @@ -2516,7 +2516,7 @@ reread_symbols (void) obfd_filename = bfd_get_filename (objfile->obfd); /* Open the new BFD before freeing the old one, so that the filename remains live. */ - objfile->obfd = bfd_open_maybe_remote (obfd_filename); + objfile->obfd = gdb_bfd_open_maybe_remote (obfd_filename); gdb_bfd_unref (obfd); } diff --git a/gdb/symfile.h b/gdb/symfile.h index edf1c242dc6..bb75c184586 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -550,7 +550,7 @@ extern void find_lowest_section (bfd *, asection *, void *); extern bfd *symfile_bfd_open (char *); -extern bfd *bfd_open_maybe_remote (const char *); +extern bfd *gdb_bfd_open_maybe_remote (const char *); extern int get_section_index (struct objfile *, char *); -- 2.30.2