LONGEST lastval;
fprintf_filtered (stream, "(");
- wrap_here (1);
+ stream->wrap_here (1);
lastval = 0;
for (i = 0; i < len; i++)
QUIT;
if (i)
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
fputs_styled (ada_enum_name (type->field (i).name ()),
variable_name_style.style (), stream);
if (lastval != type->field (i).loc_enumval ())
elt_type = ada_array_element_type (type, n_indices);
fprintf_filtered (stream, ") of ");
- wrap_here (0);
+ stream->wrap_here (0);
ada_print_type (elt_type, "", stream, show == 0 ? 0 : show - 1, level + 1,
flags);
/* Arrays with variable-length elements are never bit-packed in practice but
if (i > 0)
{
fputs_filtered ("; ", stream);
- wrap_here (4);
+ stream->wrap_here (4);
}
fprintf_filtered (stream, "a%d: ", i + 1);
ada_print_type (type->field (i).type (), "", stream, -1, 0,
fprintf_filtered (stream, "\n");
print_spaces_filtered (2 + 2 * recurse, stream);
}
- wrap_here (2 + 2 * recurse);
+ stream->wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, i + low, stream, options);
i0 = i;
{
fprintf_filtered (stream, ", ");
}
- wrap_here (2 + 2 * recurse);
+ stream->wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, j + low,
stream, options);
}
}
else
{
- wrap_here (2 + 2 * recurse);
+ stream->wrap_here (2 + 2 * recurse);
}
annotate_field_begin (type->field (i).type ());
for (i = 0; i < TYPE_N_BASECLASSES (type); i++)
{
- wrap_here (8);
+ stream->wrap_here (8);
fputs_filtered (i == 0 ? ": " : ", ", stream);
fprintf_filtered (stream, "%s%s ",
BASETYPE_VIA_PUBLIC (type, i)
else if (i < nargs)
{
fprintf_filtered (stream, ", ");
- wrap_here (8);
+ stream->wrap_here (8);
}
}
}
if (printed_any)
{
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
}
param_type = type->field (i).type ();
if (printed_any && type->has_varargs ())
{
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
fprintf_filtered (stream, "...");
}
}
if (first)
{
- wrap_here (4);
+ stream->wrap_here (4);
fprintf_filtered (stream, _("[with %s = "), sym->linkage_name ());
first = 0;
}
else
{
fputs_filtered (", ", stream);
- wrap_here (9);
+ stream->wrap_here (9);
fprintf_filtered (stream, "%s = ", sym->linkage_name ());
}
fputs_filtered (" ", stream);
}
- wrap_here (4);
+ stream->wrap_here (4);
if (show < 0)
{
/* If we just printed a tag name, no need to print anything
QUIT;
if (i)
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
fputs_styled (type->field (i).name (),
variable_name_style.style (), stream);
if (lastval != type->field (i).loc_enumval ())
reset_terminal_style (gdb_stdout);
/* Force this output to appear now. */
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
gdb_flush (gdb_stdout);
}
continue;
fputs_filtered (", ", stream);
- wrap_here (3);
+ stream->wrap_here (3);
fput_command_name_styled (alias, stream);
}
fprintf_filtered (stream, "\n\
Type \"help%s\" followed by a class name for a list of commands in ",
cmdtype1);
- wrap_here (0);
+ stream->wrap_here (0);
fprintf_filtered (stream, "that class.");
fprintf_filtered (stream, "\n\
fprintf_filtered (stream, "\nType \"help%s\" followed by %scommand name ",
cmdtype1, cmdtype2);
- wrap_here (0);
+ stream->wrap_here (0);
fputs_filtered ("for ", stream);
- wrap_here (0);
+ stream->wrap_here (0);
fputs_filtered ("full ", stream);
- wrap_here (0);
+ stream->wrap_here (0);
fputs_filtered ("documentation.\n", stream);
fputs_filtered ("Type \"apropos word\" to search "
"for commands related to \"word\".\n", stream);
fputs_filtered ("Type \"apropos -v word\" for full documentation", stream);
- wrap_here (0);
+ stream->wrap_here (0);
fputs_filtered (" of commands related to \"word\".\n", stream);
fputs_filtered ("Command name abbreviations are allowed if unambiguous.\n",
stream);
}
else
{
- wrap_here (2 + 2 * recurse);
+ stream->wrap_here (2 + 2 * recurse);
}
annotate_field_begin (type->field (i).type ());
fprintf_filtered (file, "%s", valid_options->arg[i]->name);
if (valid_options->name[i + 1] != NULL)
fprintf_filtered (file, ", ");
- wrap_here (2);
+ file->wrap_here (2);
}
fprintf_filtered (file, "\n");
}
for (j = 0; valid_args[i].values[j] != NULL; j++)
{
fprintf_filtered (file, " %s", valid_args[i].values[j]);
- wrap_here (3);
+ file->wrap_here (3);
}
fprintf_filtered (file, "\n");
}
/* 1. The _filtered buffer. */
if (filtered_printing_initialized ())
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
/* 2. The stdio buffer. */
gdb_flush (gdb_stdout);
printf_filtered ("\t`%ps', ",
styled_string (file_name_style.style (),
bfd_get_filename (abfd)));
- wrap_here (8);
+ gdb_stdout->wrap_here (8);
printf_filtered (_("file type %s.\n"), bfd_get_target (abfd));
if (abfd == current_program_space->exec_bfd ())
{
if (i > 0)
{
fputs_filtered (", ", stream);
- wrap_here (4);
+ stream->wrap_here (4);
}
print_type (type->field (i).type (), "", stream, -1, 0, 0);
}
QUIT;
- wrap_here (4);
+ stream->wrap_here (4);
if (type == NULL)
{
fputs_styled ("<type unknown>", metadata_style.style (), stream);
print_spaces_filtered (2 + 2 * recurse, stream);
}
else
- wrap_here (2 + 2 *recurse);
+ stream->wrap_here (2 + 2 *recurse);
}
if (is_map && i % 2 == 0)
QUIT;
- wrap_here (4);
+ stream->wrap_here (4);
if (type == NULL)
{
fputs_styled (_("<type unknown>"), metadata_style.style (), stream);
if (i > 0)
{
fputs_filtered (", ", stream);
- wrap_here (4);
+ stream->wrap_here (4);
}
m2_print_type (type->field (i).type (), "", stream, -1, 0, flags);
}
fprintf_filtered (stream, " = ");
}
}
- wrap_here (4);
+ stream->wrap_here (4);
if (show < 0)
{
if (type->code () == TYPE_CODE_STRUCT)
QUIT;
if (i > 0)
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
fputs_styled (type->field (i).name (),
variable_name_style.style (), stream);
if (lastval != type->field (i).loc_enumval ())
if (print_version)
{
print_gdb_version (gdb_stdout, false);
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
printf_filtered ("\n");
exit (0);
}
if (print_configuration)
{
print_gdb_configuration (gdb_stdout);
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
printf_filtered ("\n");
exit (0);
}
print_gdb_version (gdb_stdout, true);
if (symarg)
printf_filtered ("..");
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
printf_filtered ("\n");
gdb_flush (gdb_stdout); /* Force to screen during slow
operations. */
print_gdb_version (gdb_stdout, true);
if (symarg)
printf_filtered ("..");
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
printf_filtered ("\n");
gdb_flush (gdb_stdout); /* Force to screen during slow
operations. */
const char *arg)
{
puts_filtered (header);
- wrap_here (8);
+ gdb_stdout->wrap_here (8);
printf_filtered ("`%s', ", bfd_get_filename (abfd));
- wrap_here (8);
+ gdb_stdout->wrap_here (8);
printf_filtered (_("file type %s.\n"), bfd_get_target (abfd));
int section_count = gdb_bfd_count_sections (abfd);
if (i > 0)
{
fputs_filtered (", ", stream);
- wrap_here (4);
+ stream->wrap_here (4);
}
/* Can we find if it is a var parameter ??
if ( TYPE_FIELD(type, i) == )
section_type;
QUIT;
- wrap_here (4);
+ stream->wrap_here (4);
if (type == NULL)
{
fputs_styled ("<type unknown>", metadata_style.style (), stream);
fprintf_filtered (stream, "case <?> of ");
struct_union:
- wrap_here (4);
+ stream->wrap_here (4);
if (show < 0)
{
/* If we just printed a tag name, no need to print anything else. */
/* enum is just defined by
type enume_name = (enum_member1,enum_member2,...) */
fprintf_filtered (stream, " = ");
- wrap_here (4);
+ stream->wrap_here (4);
if (show < 0)
{
/* If we just printed a tag name, no need to print anything else. */
QUIT;
if (i)
fprintf_filtered (stream, ", ");
- wrap_here (4);
+ stream->wrap_here (4);
fputs_filtered (type->field (i).name (), stream);
if (lastval != type->field (i).loc_enumval ())
{
}
else
{
- wrap_here (2 + 2 * recurse);
+ stream->wrap_here (2 + 2 * recurse);
}
annotate_field_begin (type->field (i).type ());
case 'i':
/* We often wrap here if there are long symbolic names. */
- wrap_here (4);
+ stream->wrap_here (4);
next_address = (value_address (val)
+ gdb_print_insn (type->arch (),
value_address (val), stream,
is calculated after the loop. */
printf_filtered (_("No line number information available "
"for address "));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
print_address (gdbarch, loop_start - 1, gdb_stdout);
printf_filtered ("\n");
break;
annotate_value_end ();
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
gdb_flush (gdb_stdout);
}
{
ui_printf (arg, gdb_stdout);
reset_terminal_style (gdb_stdout);
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
gdb_stdout->flush ();
}
if (info_verbose)
{
puts_filtered (" ");
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
puts_filtered ("and ");
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
printf_filtered ("%s...", dependencies[i]->filename);
- wrap_here (0); /* Flush output */
+ gdb_stdout->wrap_here (0); /* Flush output */
gdb_flush (gdb_stdout);
}
dependencies[i]->expand_psymtab (objfile);
if (! printed_objfile_start)
{
printf_filtered ("{ objfile %s ", objfile_name (objfile));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered ("((struct objfile *) %s)\n",
host_address_to_string (objfile));
printed_objfile_start = 1;
}
printf_filtered (" { psymtab %s ", psymtab->filename);
- wrap_here (4);
+ gdb_stdout->wrap_here (4);
printf_filtered ("((struct partial_symtab *) %s)\n",
host_address_to_string (psymtab));
print_spaces_filtered (2 + 2 * recurse, stream);
}
else
- wrap_here (2 + 2 *recurse);
+ stream->wrap_here (2 + 2 *recurse);
}
if (is_map && i % 2 == 0)
user about a source line, at least let them have the symbolic
address. */
printf_filtered (" for address ");
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
print_address (gdbarch, sal.pc, gdb_stdout);
}
else
printf_filtered ("Line %d of \"%s\"",
sal.line,
symtab_to_filename_for_display (sal.symtab));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered (" is at address ");
print_address (gdbarch, start_pc, gdb_stdout);
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered (" but contains no code.\n");
}
else
printf_filtered ("Line %d of \"%s\"",
sal.line,
symtab_to_filename_for_display (sal.symtab));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered (" starts at address ");
print_address (gdbarch, start_pc, gdb_stdout);
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered (" and ends at ");
print_address (gdbarch, end_pc, gdb_stdout);
printf_filtered (".\n");
else
fputs_styled ("<unavailable>", metadata_style.style (), gdb_stdout);
- wrap_here (3);
+ gdb_stdout->wrap_here (3);
if (funname)
{
printf_filtered (" in ");
puts_filtered (funname);
}
- wrap_here (3);
+ gdb_stdout->wrap_here (3);
if (sal.symtab)
printf_filtered
(" (%ps:%d)",
symtab_to_filename_for_display (sal.symtab)),
sal.line);
puts_filtered ("; ");
- wrap_here (4);
+ gdb_stdout->wrap_here (4);
printf_filtered ("saved %s = ", pc_regname);
if (!frame_id_p (frame_unwind_caller_id (fi)))
}
if (get_next_frame (fi) && calling_frame_info)
puts_filtered (",");
- wrap_here (3);
+ gdb_stdout->wrap_here (3);
if (get_next_frame (fi))
{
printf_filtered (" caller of frame at ");
puts_filtered (" Saved registers:\n ");
else
puts_filtered (",");
- wrap_here (1);
+ gdb_stdout->wrap_here (1);
printf_filtered (" %s at ",
gdbarch_register_name (gdbarch, i));
puts_filtered (paddress (gdbarch, addr));
if (!objfile_has_symbols (objfile))
{
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
printf_filtered (_("(no debugging symbols found)\n"));
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
}
/* We're done reading the symbol file; finish off complaints. */
if (! printed_objfile_start)
{
printf_filtered ("{ objfile %s ", objfile_name (objfile));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered ("((struct objfile *) %s)\n",
host_address_to_string (objfile));
printed_objfile_start = 1;
printf_filtered ("\t{ symtab %s ",
symtab_to_filename_for_display (symtab));
- wrap_here (4);
+ gdb_stdout->wrap_here (4);
printf_filtered ("((struct symtab *) %s)\n",
host_address_to_string (symtab));
printf_filtered ("\t fullname %s\n",
if (! printed_objfile_start)
{
printf_filtered ("{ objfile %s ", objfile_name (objfile));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered ("((struct objfile *) %s)\n",
host_address_to_string (objfile));
printed_objfile_start = 1;
m_uiout->text (", ");
m_first = false;
- wrap_here (0);
+ m_uiout->wrap_hint (0);
if (m_uiout->is_mi_like_p ())
{
m_uiout->field_string ("file", disp_name, file_name_style.style ());
/* Make sure that all output has been output. Some machines may
let you get away with leaving out some of the gdb_flush, but
not all. */
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
gdb_flush (gdb_stdout);
gdb_flush (gdb_stderr);
printf_filtered ("Line %d of \"%s\"",
sal.line,
symtab_to_filename_for_display (sal.symtab));
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered (" is at address ");
print_address (get_current_arch (), start_pc, gdb_stdout);
- wrap_here (2);
+ gdb_stdout->wrap_here (2);
printf_filtered (" but contains no code.\n");
sal = find_pc_line (start_pc, 0);
if (sal.line > 0
target_terminal::ours_for_output ();
}
if (filtered_printing_initialized ())
- wrap_here (0); /* Force out any buffered output. */
+ gdb_stdout->wrap_here (0); /* Force out any buffered output. */
gdb_flush (gdb_stdout);
if (warning_pre_print)
fputs_unfiltered (warning_pre_print, gdb_stderr);
{
target_terminal::scoped_restore_terminal_state term_state;
target_terminal::ours_for_output ();
- wrap_here (0);
+ gdb_stdout->wrap_here (0);
vfprintf_filtered (gdb_stdout, ctlstr, args);
printf_filtered (_("(%s or %s) [answered %c; "
if (*lineptr == '\n')
{
chars_printed = 0;
- wrap_here (0); /* Spit out chars, cancel
- further wraps. */
+ stream->wrap_here (0); /* Spit out chars, cancel
+ further wraps. */
lines_printed++;
/* XXX: The ideal thing would be to call
'stream->putc' here, but we can't because it
fprintf_filtered (stream, "\n");
print_spaces_filtered (2 + 2 * recurse, stream);
}
- wrap_here (2 + 2 * recurse);
+ stream->wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, i + low_bound,
stream, options);