diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-22 16:32:48 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-02-14 06:22:33 -0700 |
commit | 660da3c14b3b1815d6b3f1849a7225a10d819042 (patch) | |
tree | 569508305b97cfb486866c69a09fa3635e9cd213 /gdb/valprint.c | |
parent | 362501dc5c85ae67c7141292ed5be1bfbd334645 (diff) | |
download | gdb-660da3c14b3b1815d6b3f1849a7225a10d819042.zip gdb-660da3c14b3b1815d6b3f1849a7225a10d819042.tar.gz 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.c | 7 |
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) { |