diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-02 11:46:15 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-03-29 12:46:24 -0600 |
commit | 6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a (patch) | |
tree | 641a6a86240919fe4ba9219fbbbe15bc6331c22d /gdb/objc-lang.c | |
parent | a11ac3b3e8ff6769badcf0041894f6c5acc1b94f (diff) | |
download | gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.zip gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.gz gdb-6cb06a8cdaaf30f5d879f24d37100cf1d25c6a3a.tar.bz2 |
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/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 3bb9588..e116fbe 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -621,8 +621,8 @@ info_selectors_command (const char *regexp, int from_tty) } if (matches) { - printf_filtered (_("Selectors matching \"%s\":\n\n"), - regexp ? regexp : "*"); + gdb_printf (_("Selectors matching \"%s\":\n\n"), + regexp ? regexp : "*"); sym_arr = XALLOCAVEC (struct symbol *, matches); matches = 0; @@ -671,8 +671,8 @@ info_selectors_command (const char *regexp, int from_tty) begin_line(); } else - printf_filtered (_("No selectors matching \"%s\"\n"), - regexp ? regexp : "*"); + gdb_printf (_("No selectors matching \"%s\"\n"), + regexp ? regexp : "*"); } /* @@ -763,8 +763,8 @@ info_classes_command (const char *regexp, int from_tty) } if (matches) { - printf_filtered (_("Classes matching \"%s\":\n\n"), - regexp ? regexp : "*"); + gdb_printf (_("Classes matching \"%s\":\n\n"), + regexp ? regexp : "*"); sym_arr = XALLOCAVEC (struct symbol *, matches); matches = 0; for (objfile *objfile : current_program_space->objfiles ()) @@ -805,7 +805,7 @@ info_classes_command (const char *regexp, int from_tty) begin_line(); } else - printf_filtered (_("No classes matching \"%s\"\n"), regexp ? regexp : "*"); + gdb_printf (_("No classes matching \"%s\"\n"), regexp ? regexp : "*"); } static char * @@ -1181,12 +1181,12 @@ print_object_command (const char *args, int from_tty) do { /* Read and print characters up to EOS. */ QUIT; - printf_filtered ("%c", c); + gdb_printf ("%c", c); read_memory (string_addr + i++, &c, 1); } while (c != 0); else - printf_filtered(_("<object returns empty description>")); - printf_filtered ("\n"); + gdb_printf(_("<object returns empty description>")); + gdb_printf ("\n"); } /* The data structure 'methcalls' is used to detect method calls (thru |