summaryrefslogtreecommitdiff
path: root/gdb/findcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-02 11:46:15 -0700
committerTom Tromey <tom@tromey.com>2022-03-29 12:46:24 -0600
commit6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch)
tree641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/findcmd.c
parenta11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff)
downloadbinutils-gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz
Unify gdb printf functions
Now that filtered and unfiltered output can be treated identically, we can unify the printf family of functions. This is done under the name "gdb_printf". Most of this patch was written by script.
Diffstat (limited to 'gdb/findcmd.c')
-rw-r--r--gdb/findcmd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 4ae60970f27..ff13f22e970 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -121,7 +121,7 @@ parse_find_args (const char *args, ULONGEST *max_countp,
len = value_as_long (v);
if (len == 0)
{
- printf_filtered (_("Empty search range.\n"));
+ gdb_printf (_("Empty search range.\n"));
return pattern_buf;
}
if (len < 0)
@@ -247,7 +247,7 @@ find_command (const char *args, int from_tty)
break;
print_address (gdbarch, found_addr, gdb_stdout);
- printf_filtered ("\n");
+ gdb_printf ("\n");
++found_count;
last_found_addr = found_addr;
@@ -274,10 +274,10 @@ find_command (const char *args, int from_tty)
}
if (found_count == 0)
- printf_filtered ("Pattern not found.\n");
+ gdb_printf ("Pattern not found.\n");
else
- printf_filtered ("%d pattern%s found.\n", found_count,
- found_count > 1 ? "s" : "");
+ gdb_printf ("%d pattern%s found.\n", found_count,
+ found_count > 1 ? "s" : "");
}
void _initialize_mem_search ();