aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-02-11 18:14:17 -0700
committerTom Tromey <tom@tromey.com>2022-10-10 10:43:34 -0600
commit3a3bb6eb36a29e3201bfc4cc53e341f4f98e6cf1 (patch)
tree22ec337890716a5e76f998328a2b6cafedb833a8 /gdb/c-lang.c
parentc1c7fe59f67f5f4e3ca6f6fea1de46b983be8995 (diff)
downloadbinutils-3a3bb6eb36a29e3201bfc4cc53e341f4f98e6cf1.zip
binutils-3a3bb6eb36a29e3201bfc4cc53e341f4f98e6cf1.tar.gz
binutils-3a3bb6eb36a29e3201bfc4cc53e341f4f98e6cf1.tar.bz2
Remove c_printstr
This renames c_printstr, removing a layer of indirection.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r--gdb/c-lang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index d6c56f3..437f79c 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -190,10 +190,10 @@ language_defn::printchar (int c, struct type *type,
characters, or if FORCE_ELLIPSES. */
void
-c_printstr (struct ui_file *stream, struct type *type,
- const gdb_byte *string, unsigned int length,
- const char *user_encoding, int force_ellipses,
- const struct value_print_options *options)
+language_defn::printstr (struct ui_file *stream, struct type *type,
+ const gdb_byte *string, unsigned int length,
+ const char *user_encoding, int force_ellipses,
+ const struct value_print_options *options) const
{
c_string_type str_type;
const char *type_encoding;