From 660da3c14b3b1815d6b3f1849a7225a10d819042 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 22 Jan 2022 16:32:48 -0700 Subject: Remove LA_PRINT_STRING This removes the LA_PRINT_STRING macro, in favor of using ordinary method calls. --- gdb/valprint.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gdb/valprint.c') 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) { -- cgit v1.1