aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2005-03-11 20:27:56 +0000
committerJim Blandy <jimb@codesourcery.com>2005-03-11 20:27:56 +0000
commit1f8ca57c49f1fec384b070c12c40fffcdd7f36fb (patch)
treeaf07083e6457c3ba91dc4ca764d9ba18a464cbf3
parent61c84b48d31e90c7373b3819abc0b20b2270581f (diff)
downloadgdb-1f8ca57c49f1fec384b070c12c40fffcdd7f36fb.zip
gdb-1f8ca57c49f1fec384b070c12c40fffcdd7f36fb.tar.gz
gdb-1f8ca57c49f1fec384b070c12c40fffcdd7f36fb.tar.bz2
* mips-tdep.c (show_mips_abi): Change calling conventions to match
those expected by add_setshow_enum_cmd. Use 'file' argument as appropriate.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/mips-tdep.c26
2 files changed, 23 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7ed6237..3d2dc2f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-11 Jim Blandy <jimb@redhat.com>
+
+ * mips-tdep.c (show_mips_abi): Change calling conventions to match
+ those expected by add_setshow_enum_cmd. Use 'file' argument as
+ appropriate.
+
2005-03-10 Daniel Jacobowitz <dan@codesourcery.com>
* Makefile.in (SFILES): Add cp-names.y.
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index c109ed2..64e3cc1 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -5059,11 +5059,16 @@ mips_abi_update (char *ignore_args, int from_tty, struct cmd_list_element *c)
/* Print out which MIPS ABI is in use. */
static void
-show_mips_abi (char *ignore_args, int from_tty)
+show_mips_abi (struct ui_file *file,
+ int from_tty,
+ struct cmd_list_element *ignored_cmd,
+ const char *ignored_value)
{
if (gdbarch_bfd_arch_info (current_gdbarch)->arch != bfd_arch_mips)
- printf_filtered
- ("The MIPS ABI is unknown because the current architecture is not MIPS.\n");
+ fprintf_filtered
+ (file,
+ "The MIPS ABI is unknown because the current architecture "
+ "is not MIPS.\n");
else
{
enum mips_abi global_abi = global_mips_abi ();
@@ -5071,18 +5076,21 @@ show_mips_abi (char *ignore_args, int from_tty)
const char *actual_abi_str = mips_abi_strings[actual_abi];
if (global_abi == MIPS_ABI_UNKNOWN)
- printf_filtered
- ("The MIPS ABI is set automatically (currently \"%s\").\n",
+ fprintf_filtered
+ (file,
+ "The MIPS ABI is set automatically (currently \"%s\").\n",
actual_abi_str);
else if (global_abi == actual_abi)
- printf_filtered
- ("The MIPS ABI is assumed to be \"%s\" (due to user setting).\n",
+ fprintf_filtered
+ (file,
+ "The MIPS ABI is assumed to be \"%s\" (due to user setting).\n",
actual_abi_str);
else
{
/* Probably shouldn't happen... */
- printf_filtered
- ("The (auto detected) MIPS ABI \"%s\" is in use even though the user setting was \"%s\".\n",
+ fprintf_filtered
+ (file,
+ "The (auto detected) MIPS ABI \"%s\" is in use even though the user setting was \"%s\".\n",
actual_abi_str, mips_abi_strings[global_abi]);
}
}