diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-26 21:51:25 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-29 10:40:10 -0700 |
commit | 728ab7b6439addf398c00b06667bb4058fd66f70 (patch) | |
tree | e968655a4291d19619631a2a2da91355590e76de | |
parent | d68510ac191cb8b4b662a5fd1f3bcf9f4b136971 (diff) | |
download | binutils-728ab7b6439addf398c00b06667bb4058fd66f70.zip binutils-728ab7b6439addf398c00b06667bb4058fd66f70.tar.gz binutils-728ab7b6439addf398c00b06667bb4058fd66f70.tar.bz2 |
Send arch-utils error messages to gdb_stderr
This changes arch-utils.c to send some error messages to gdb_stderr.
This is part of PR gdb/7233.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=7233
-rw-r--r-- | gdb/arch-utils.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 4442ec9..fb92b99 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -405,7 +405,8 @@ set_endian (const char *ignore_args, int from_tty, struct cmd_list_element *c) { info.byte_order = BFD_ENDIAN_LITTLE; if (! gdbarch_update_p (info)) - printf_unfiltered (_("Little endian target not supported by GDB\n")); + fprintf_unfiltered (gdb_stderr, + _("Little endian target not supported by GDB\n")); else target_byte_order_user = BFD_ENDIAN_LITTLE; } @@ -413,7 +414,8 @@ set_endian (const char *ignore_args, int from_tty, struct cmd_list_element *c) { info.byte_order = BFD_ENDIAN_BIG; if (! gdbarch_update_p (info)) - printf_unfiltered (_("Big endian target not supported by GDB\n")); + fprintf_unfiltered (gdb_stderr, + _("Big endian target not supported by GDB\n")); else target_byte_order_user = BFD_ENDIAN_BIG; } @@ -567,8 +569,9 @@ set_architecture (const char *ignore_args, if (gdbarch_update_p (info)) target_architecture_user = info.bfd_arch_info; else - printf_unfiltered (_("Architecture `%s' not recognized.\n"), - set_architecture_string); + fprintf_unfiltered (gdb_stderr, + _("Architecture `%s' not recognized.\n"), + set_architecture_string); } show_architecture (gdb_stdout, from_tty, NULL, NULL); } |