@@ -468,7 +468,7 @@ core_target::build_file_mappings ()
468468 = gdb_bfd_open (expanded_fname .get (), gnutarget );
469469
470470 if (tmp_bfd != nullptr
471- && bfd_check_format (tmp_bfd .get (), bfd_object )
471+ && gdb_bfd_check_format (tmp_bfd .get (), bfd_object )
472472 && build_id_bfd_get (tmp_bfd .get ()) != nullptr )
473473 {
474474 /* The newly opened TMP_BFD has a build-id, and this mapped
@@ -487,7 +487,7 @@ core_target::build_file_mappings ()
487487
488488 if ((expanded_fname == nullptr
489489 || abfd == nullptr
490- || !bfd_check_format (abfd .get (), bfd_object ))
490+ || !gdb_bfd_check_format (abfd .get (), bfd_object ))
491491 && file_data .build_id != nullptr )
492492 {
493493 abfd = find_objfile_by_build_id (current_program_space ,
@@ -510,7 +510,7 @@ core_target::build_file_mappings ()
510510
511511 if (expanded_fname == nullptr
512512 || abfd == nullptr
513- || !bfd_check_format (abfd .get (), bfd_object ))
513+ || !gdb_bfd_check_format (abfd .get (), bfd_object ))
514514 {
515515 /* If ABFD was opened, but the wrong format, close it now. */
516516 abfd = nullptr ;
@@ -1089,7 +1089,7 @@ core_target_open (const char *arg, int from_tty)
10891089 if (temp_bfd == NULL )
10901090 perror_with_name (filename .c_str ());
10911091
1092- if (!bfd_check_format (temp_bfd .get (), bfd_core ))
1092+ if (!gdb_bfd_check_format (temp_bfd .get (), bfd_core ))
10931093 {
10941094 /* Do it after the err msg */
10951095 /* FIXME: should be checking for errors from bfd_close (for one
0 commit comments