X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fbuild-id.c;h=8a2d5b4b7a37d99229e233f1bf085e7418450fce;hb=13835d88dc51497b9bd68dc1f394ca0de099a380;hp=d68b7a7af5777147d9a56e48498441173cba4101;hpb=4a2f674a688df474639066922f4ce70ce97b30d2;p=binutils-gdb.git diff --git a/gdb/build-id.c b/gdb/build-id.c index d68b7a7af57..8a2d5b4b7a3 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -1,6 +1,6 @@ /* build-id-related functions. - Copyright (C) 1991-2021 Free Software Foundation, Inc. + Copyright (C) 1991-2022 Free Software Foundation, Inc. This file is part of GDB. @@ -76,8 +76,8 @@ build_id_to_debug_bfd_1 (const std::string &link, size_t build_id_len, { if (separate_debug_file_debug) { - printf_unfiltered (_(" Trying %s..."), link.c_str ()); - gdb_flush (gdb_stdout); + fprintf_unfiltered (gdb_stdlog, _(" Trying %s..."), link.c_str ()); + gdb_flush (gdb_stdlog); } /* lrealpath() is expensive even for the usually non-existent files. */ @@ -94,7 +94,8 @@ build_id_to_debug_bfd_1 (const std::string &link, size_t build_id_len, if (filename == NULL) { if (separate_debug_file_debug) - printf_unfiltered (_(" no, unable to compute real path\n")); + fprintf_unfiltered (gdb_stdlog, + _(" no, unable to compute real path\n")); return {}; } @@ -105,7 +106,7 @@ build_id_to_debug_bfd_1 (const std::string &link, size_t build_id_len, if (debug_bfd == NULL) { if (separate_debug_file_debug) - printf_unfiltered (_(" no, unable to open.\n")); + fprintf_unfiltered (gdb_stdlog, _(" no, unable to open.\n")); return {}; } @@ -113,13 +114,13 @@ build_id_to_debug_bfd_1 (const std::string &link, size_t build_id_len, if (!build_id_verify (debug_bfd.get(), build_id_len, build_id)) { if (separate_debug_file_debug) - printf_unfiltered (_(" no, build-id does not match.\n")); + fprintf_unfiltered (gdb_stdlog, _(" no, build-id does not match.\n")); return {}; } if (separate_debug_file_debug) - printf_unfiltered (_(" yes!\n")); + fprintf_unfiltered (gdb_stdlog, _(" yes!\n")); return debug_bfd; } @@ -209,8 +210,9 @@ find_separate_debug_file_by_buildid (struct objfile *objfile) if (build_id != NULL) { if (separate_debug_file_debug) - printf_unfiltered (_("\nLooking for separate debug info (build-id) for " - "%s\n"), objfile_name (objfile)); + fprintf_unfiltered (gdb_stdlog, + _("\nLooking for separate debug info (build-id) for " + "%s\n"), objfile_name (objfile)); gdb_bfd_ref_ptr abfd (build_id_to_debug_bfd (build_id->size, build_id->data));