+2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * ada-lang.c (ada_language::print_array_index): Call value_print
+ directly.
+ * language.c (language_defn::print_array_index): Likewise.
+ * language.h (LA_VALUE_PRINT): Delete.
+ * valprint.c (value_print): Call value_print on the
+ current_language directly.
+
2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
* language.h (LA_PRINT_TYPEDEF): Delete.
{
struct value *index_value = val_atr (index_type, index);
- LA_VALUE_PRINT (index_value, stream, options);
+ value_print (index_value, stream, options);
fprintf_filtered (stream, " => ");
}
struct value *index_value = value_from_longest (index_type, index);
fprintf_filtered (stream, "[");
- LA_VALUE_PRINT (index_value, stream, options);
+ value_print (index_value, stream, options);
fprintf_filtered (stream, "] = ");
}
#define LA_PRINT_TYPE(type,varstring,stream,show,level,flags) \
(current_language->print_type(type,varstring,stream,show,level,flags))
-#define LA_VALUE_PRINT(val,stream,options) \
- (current_language->value_print (val,stream,options))
-
#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) \
return;
}
- LA_VALUE_PRINT (val, stream, options);
+ current_language->value_print (val, stream, options);
}
static void