diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/c-lang.c | 2 | ||||
-rw-r--r-- | gdb/f-lang.h | 2 | ||||
-rw-r--r-- | gdb/language.h | 2 | ||||
-rw-r--r-- | gdb/rust-lang.c | 2 |
5 files changed, 12 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c52f9b..d751b0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> + * c-lang.c (language_defn::printchar): Call emitchar, not + LA_EMIT_CHAR. + * f-lang.h (f_language::printchar): Likewise. + * language.h (LA_EMIT_CHAR): Delete macro. + * rust-lang.c (rust_language::printchar): Call emitchar, not + LA_EMIT_CHAR. + +2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> + * c-lang.c (c_printchar): Rename to... (language_defn::printchar): ...this. * c-lang.h (c_printchar): Delete declaration. diff --git a/gdb/c-lang.c b/gdb/c-lang.c index a028d10..c840761 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -178,7 +178,7 @@ language_defn::printchar (int c, struct type *type, } fputc_filtered ('\'', stream); - LA_EMIT_CHAR (c, type, stream, '\''); + emitchar (c, type, stream, '\''); fputc_filtered ('\'', stream); } diff --git a/gdb/f-lang.h b/gdb/f-lang.h index 351f219..51ee6f6 100644 --- a/gdb/f-lang.h +++ b/gdb/f-lang.h @@ -155,7 +155,7 @@ public: struct ui_file *stream) const override { fputs_filtered ("'", stream); - LA_EMIT_CHAR (ch, chtype, stream, '\''); + emitchar (ch, chtype, stream, '\''); fputs_filtered ("'", stream); } diff --git a/gdb/language.h b/gdb/language.h index 73ddd24..af7bd4f 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -775,8 +775,6 @@ extern enum language set_language (enum language); #define LA_PRINT_STRING(stream, elttype, string, length, encoding, force_ellipses, options) \ (current_language->printstr (stream, elttype, string, length, \ encoding, force_ellipses,options)) -#define LA_EMIT_CHAR(ch, type, stream, quoter) \ - (current_language->emitchar (ch, type, stream, quoter)) /* Test a character to decide whether it can be printed in literal form or needs to be printed in another representation. For example, diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 3a9a4e7..96ae075 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -2054,7 +2054,7 @@ public: struct ui_file *stream) const override { fputs_filtered ("'", stream); - LA_EMIT_CHAR (ch, chtype, stream, '\''); + emitchar (ch, chtype, stream, '\''); fputs_filtered ("'", stream); } |