diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-22 16:31:52 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-02-14 06:22:33 -0700 |
commit | 362501dc5c85ae67c7141292ed5be1bfbd334645 (patch) | |
tree | e69ce79f438247f10faea1fd8ccfa9a35a720f91 /gdb | |
parent | 13eb081a83b6f9b07cf4447e52e1d0503bf90211 (diff) | |
download | gdb-362501dc5c85ae67c7141292ed5be1bfbd334645.zip gdb-362501dc5c85ae67c7141292ed5be1bfbd334645.tar.gz gdb-362501dc5c85ae67c7141292ed5be1bfbd334645.tar.bz2 |
Remove LA_PRINT_CHAR
This removes the LA_PRINT_CHAR macro, in favor of using ordinary
method calls.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ada-valprint.c | 2 | ||||
-rw-r--r-- | gdb/c-valprint.c | 3 | ||||
-rw-r--r-- | gdb/language.h | 2 | ||||
-rw-r--r-- | gdb/typeprint.c | 2 | ||||
-rw-r--r-- | gdb/valprint.c | 2 |
5 files changed, 5 insertions, 6 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index adab6b4..a59c392 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -402,7 +402,7 @@ ada_print_scalar (struct type *type, LONGEST val, struct ui_file *stream) break; case TYPE_CODE_CHAR: - LA_PRINT_CHAR (val, type, stream); + current_language->printchar (val, type, stream); break; case TYPE_CODE_BOOL: diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index fadbc5b..047e568 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -409,7 +409,8 @@ c_value_print_int (struct value *val, struct ui_file *stream, if (c_textual_element_type (type, options->format)) { fputs_filtered (" ", stream); - LA_PRINT_CHAR (unpack_long (type, valaddr), type, stream); + current_language->printchar (unpack_long (type, valaddr), type, + stream); } } } diff --git a/gdb/language.h b/gdb/language.h index 3930f5b..4eb414b 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -755,8 +755,6 @@ extern enum language set_language (enum language); the current setting of working_lang, which the user sets with the "set language" command. */ -#define LA_PRINT_CHAR(ch, type, stream) \ - (current_language->printchar (ch, type, stream)) #define LA_PRINT_STRING(stream, elttype, string, length, encoding, force_ellipses, options) \ (current_language->printstr (stream, elttype, string, length, \ encoding, force_ellipses,options)) diff --git a/gdb/typeprint.c b/gdb/typeprint.c index c15a9c6..8cb34ad 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -647,7 +647,7 @@ print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream) break; case TYPE_CODE_CHAR: - LA_PRINT_CHAR ((unsigned char) val, type, stream); + current_language->printchar ((unsigned char) val, type, stream); break; case TYPE_CODE_BOOL: diff --git a/gdb/valprint.c b/gdb/valprint.c index 25e4a8d..07bc324 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -791,7 +791,7 @@ generic_value_print_char (struct value *value, struct ui_file *stream, else fprintf_filtered (stream, "%d", (int) val); fputs_filtered (" ", stream); - LA_PRINT_CHAR (val, unresolved_type, stream); + current_language->printchar (val, unresolved_type, stream); } } |