aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-22 16:32:48 -0700
committerTom Tromey <tom@tromey.com>2022-02-14 06:22:33 -0700
commit660da3c14b3b1815d6b3f1849a7225a10d819042 (patch)
tree569508305b97cfb486866c69a09fa3635e9cd213 /gdb/valprint.c
parent362501dc5c85ae67c7141292ed5be1bfbd334645 (diff)
downloadfsf-binutils-gdb-660da3c14b3b1815d6b3f1849a7225a10d819042.zip
fsf-binutils-gdb-660da3c14b3b1815d6b3f1849a7225a10d819042.tar.gz
fsf-binutils-gdb-660da3c14b3b1815d6b3f1849a7225a10d819042.tar.bz2
Remove LA_PRINT_STRING
This removes the LA_PRINT_STRING macro, in favor of using ordinary method calls.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 07bc324..d6ec648 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -2767,10 +2767,9 @@ val_print_string (struct type *elttype, const char *encoding,
But if we fetch something and then get an error, print the string
and then the error message. */
if (err == 0 || bytes_read > 0)
- {
- LA_PRINT_STRING (stream, elttype, buffer.get (), bytes_read / width,
- encoding, force_ellipsis, options);
- }
+ current_language->printstr (stream, elttype, buffer.get (),
+ bytes_read / width,
+ encoding, force_ellipsis, options);
if (err != 0)
{