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/memattr.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/memattr.c')
-rw-r--r-- | gdb/memattr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c index 4e8d709..f838884 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -121,7 +121,7 @@ create_user_mem_region (CORE_ADDR lo, CORE_ADDR hi, /* lo == hi is a useless empty region. */ if (lo >= hi && hi != 0) { - printf_unfiltered (_("invalid memory region: low >= high\n")); + printf_filtered (_("invalid memory region: low >= high\n")); return; } @@ -148,7 +148,7 @@ create_user_mem_region (CORE_ADDR lo, CORE_ADDR hi, || (hi > n.lo && (hi <= n.hi || n.hi == 0)) || (lo <= n.lo && ((hi >= n.hi && n.hi != 0) || hi == 0))) { - printf_unfiltered (_("overlapping memory region\n")); + printf_filtered (_("overlapping memory region\n")); return; } } @@ -347,7 +347,7 @@ info_mem_command (const char *args, int from_tty) if (mem_region_list->empty ()) { - printf_unfiltered (_("There are no memory regions defined.\n")); + printf_filtered (_("There are no memory regions defined.\n")); return; } @@ -474,7 +474,7 @@ mem_enable (int num) m.enabled_p = 1; return; } - printf_unfiltered (_("No memory region number %d.\n"), num); + printf_filtered (_("No memory region number %d.\n"), num); } static void @@ -512,7 +512,7 @@ mem_disable (int num) m.enabled_p = 0; return; } - printf_unfiltered (_("No memory region number %d.\n"), num); + printf_filtered (_("No memory region number %d.\n"), num); } static void @@ -545,7 +545,7 @@ mem_delete (int num) { if (!mem_region_list) { - printf_unfiltered (_("No memory region number %d.\n"), num); + printf_filtered (_("No memory region number %d.\n"), num); return; } @@ -558,7 +558,7 @@ mem_delete (int num) if (it != mem_region_list->end ()) mem_region_list->erase (it); else - printf_unfiltered (_("No memory region number %d.\n"), num); + printf_filtered (_("No memory region number %d.\n"), num); } static void |