{
string_file stb;
- LA_PRINT_TYPE (type, "", &stb, -1, 0, &type_print_raw_options);
+ current_language->print_type (type, "", &stb, -1, 0,
+ &type_print_raw_options);
return stb.release ();
}
catch (const gdb_exception &except)
the current setting of working_lang, which the user sets
with the "set language" command. */
-#define LA_PRINT_TYPE(type,varstring,stream,show,level,flags) \
- (current_language->print_type(type,varstring,stream,show,level,flags))
-
#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) \
try
{
- LA_PRINT_TYPE (type_object_to_type (self), "", &thetype, -1, 0,
- &type_print_raw_options);
+ current_language->print_type (type_object_to_type (self), "",
+ &thetype, -1, 0,
+ &type_print_raw_options);
}
catch (const gdb_exception &except)
{
{
if (symbol->type ()->name ())
{
- LA_PRINT_TYPE (symbol->type (), "", outfile, 1, depth,
- &type_print_raw_options);
+ current_language->print_type (symbol->type (), "", outfile, 1, depth,
+ &type_print_raw_options);
}
else
{
: (symbol->type ()->code () == TYPE_CODE_STRUCT
? "struct" : "union")),
symbol->linkage_name ());
- LA_PRINT_TYPE (symbol->type (), "", outfile, 1, depth,
- &type_print_raw_options);
+ current_language->print_type (symbol->type (), "", outfile, 1, depth,
+ &type_print_raw_options);
}
fprintf_filtered (outfile, ";\n");
}
if (symbol->type ())
{
/* Print details of types, except for enums where it's clutter. */
- LA_PRINT_TYPE (symbol->type (), symbol->print_name (),
- outfile,
- symbol->type ()->code () != TYPE_CODE_ENUM,
- depth,
- &type_print_raw_options);
+ current_language->print_type (symbol->type (), symbol->print_name (),
+ outfile,
+ symbol->type ()->code () != TYPE_CODE_ENUM,
+ depth,
+ &type_print_raw_options);
fprintf_filtered (outfile, "; ");
}
else
type_print (struct type *type, const char *varstring, struct ui_file *stream,
int show)
{
- LA_PRINT_TYPE (type, varstring, stream, show, 0, &default_ptype_flags);
+ current_language->print_type (type, varstring, stream, show, 0,
+ &default_ptype_flags);
}
/* Print TYPE to a string, returning it. The caller is responsible for
printf_filtered (" */\n");
}
- LA_PRINT_TYPE (type, "", gdb_stdout, show, 0, &flags);
+ current_language->print_type (type, "", gdb_stdout, show, 0, &flags);
printf_filtered ("\n");
}