diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-24 22:31:53 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-05 11:36:33 -0700 |
commit | b58f47ab4cae11166f210f54bca6e7c58b855a0f (patch) | |
tree | 71a3a29e7574066997f1e5c6ef4df785ad928f98 /gdb/maint.c | |
parent | b68178b9cbbef2aa4e234db4313ac8ba6d1dc04c (diff) | |
download | gdb-b58f47ab4cae11166f210f54bca6e7c58b855a0f.zip gdb-b58f47ab4cae11166f210f54bca6e7c58b855a0f.tar.gz gdb-b58f47ab4cae11166f210f54bca6e7c58b855a0f.tar.bz2 |
Use filtered output in ordinary commands
Many otherwise ordinary commands choose to use unfiltered output
rather than filtered. I don't think there's any reason for this, so
this changes many such commands to use filtered output instead.
Note that complete_command is not touched due to a comment there
explaining why unfiltered output is believed to be used.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index 4f870ef..3584974 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -116,7 +116,7 @@ static void maintenance_time_display (const char *args, int from_tty) { if (args == NULL || *args == '\0') - printf_unfiltered (_("\"maintenance time\" takes a numeric argument.\n")); + printf_filtered (_("\"maintenance time\" takes a numeric argument.\n")); else set_per_command_time (strtol (args, NULL, 10)); } @@ -125,7 +125,7 @@ static void maintenance_space_display (const char *args, int from_tty) { if (args == NULL || *args == '\0') - printf_unfiltered ("\"maintenance space\" takes a numeric argument.\n"); + printf_filtered ("\"maintenance space\" takes a numeric argument.\n"); else set_per_command_space (strtol (args, NULL, 10)); } @@ -632,7 +632,7 @@ maintenance_deprecate (const char *args, int from_tty) { if (args == NULL || *args == '\0') { - printf_unfiltered (_("\"maintenance deprecate\" takes an argument,\n\ + printf_filtered (_("\"maintenance deprecate\" takes an argument,\n\ the command you want to deprecate, and optionally the replacement command\n\ enclosed in quotes.\n")); } @@ -646,7 +646,7 @@ maintenance_undeprecate (const char *args, int from_tty) { if (args == NULL || *args == '\0') { - printf_unfiltered (_("\"maintenance undeprecate\" takes an argument, \n\ + printf_filtered (_("\"maintenance undeprecate\" takes an argument, \n\ the command you want to undeprecate.\n")); } |