+2019-03-05 Tom Tromey <tromey@adacore.com>
+
+ * windows-nat.c (windows_nat_target::attach)
+ (windows_nat_target::detach): Don't call gdb_flush.
+ * valprint.c (generic_val_print, val_print, val_print_string):
+ Don't call gdb_flush.
+ * utils.c (defaulted_query): Don't call gdb_flush.
+ * typeprint.c (print_type_scalar): Don't call gdb_flush.
+ * target.c (target_announce_detach): Don't call gdb_flush.
+ * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
+ * remote.c (extended_remote_target::attach): Don't call
+ gdb_flush.
+ * procfs.c (procfs_target::detach): Don't call gdb_flush.
+ * printcmd.c (do_examine): Don't call gdb_flush.
+ (info_display_command): Don't call gdb_flush.
+ * p-valprint.c (pascal_val_print): Don't call gdb_flush.
+ * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
+ * memattr.c (info_mem_command): Don't call gdb_flush.
+ * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
+ * m2-valprint.c (m2_val_print): Don't call gdb_flush.
+ * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
+ * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
+ * hppa-tdep.c (unwind_command): Don't call gdb_flush.
+ * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
+ (gnu_nat_target::detach): Don't call gdb_flush.
+ * f-valprint.c (f_val_print): Don't call gdb_flush.
+ * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
+ * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
+ * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
+ gdb_flush.
+ * c-valprint.c (c_val_print): Don't call gdb_flush.
+ * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
+
2019-03-05 Tom Tromey <tromey@adacore.com>
* varobj.c (update_dynamic_varobj_children): Update.
default:
error (_("Invalid type code in symbol table."));
}
- gdb_flush (stream);
}
/* Print the character string STRING, printing at most LENGTH characters.
&c_decorations);
break;
}
- gdb_flush (stream);
}
\f
void
arg = "inferior shell";
if (rc == -1)
- {
- fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", arg,
- safe_strerror (errno));
- gdb_flush (gdb_stderr);
- }
+ fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", arg,
+ safe_strerror (errno));
else if (rc)
- {
- fprintf_unfiltered (gdb_stderr, "%s exited with status %d\n", arg, rc);
- gdb_flush (gdb_stderr);
- }
+ fprintf_unfiltered (gdb_stderr, "%s exited with status %d\n", arg, rc);
#ifdef GLOBAL_CURDIR
/* Make sure to return to the directory GDB thinks it is, in case
the shell command we just ran changed it. */
fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", user_shell,
safe_strerror (errno));
- gdb_flush (gdb_stderr);
_exit (0177);
}
}
}
printf_filtered ("End of assembler dump.\n");
- gdb_flush (gdb_stdout);
}
#if defined(TUI)
else
END_MESSAGE);
}
else
- {
- printf_unfiltered ("%s\n%s\n", prompt_arg, END_MESSAGE);
- gdb_flush (gdb_stdout);
- }
+ printf_unfiltered ("%s\n%s\n", prompt_arg, END_MESSAGE);
}
else
printf_unfiltered (_("Attaching to %s\n"),
target_pid_to_str (ptid_t (pid)));
-
- gdb_flush (gdb_stdout);
}
if (pid == 0 || ::kill (pid, 0) < 0)
&f_decorations);
break;
}
- gdb_flush (stream);
}
static void
exec_file, pid);
else
printf_unfiltered ("Attaching to pid %d\n", pid);
-
- gdb_flush (gdb_stdout);
}
inf_debug (inf, "attaching to pid: %d", pid);
exec_file, gnu_current_inf->pid);
else
printf_unfiltered ("Detaching from pid %d\n", gnu_current_inf->pid);
- gdb_flush (gdb_stdout);
}
pid = gnu_current_inf->pid;
printf_unfiltered ("unwind_table_entry (%s):\n", host_address_to_string (u));
printf_unfiltered ("\tregion_start = %s\n", hex_string (u->region_start));
- gdb_flush (gdb_stdout);
printf_unfiltered ("\tregion_end = %s\n", hex_string (u->region_end));
- gdb_flush (gdb_stdout);
#define pif(FLD) if (u->FLD) printf_unfiltered (" "#FLD);
else
printf_unfiltered (_("Attaching to %s\n"),
target_pid_to_str (ptid_t (pid)));
-
- gdb_flush (gdb_stdout);
}
#ifdef PT_ATTACH
/* We've followed the inferior through an exec. Therefore, the
inferior has essentially been killed & reborn. */
- gdb_flush (gdb_stdout);
-
breakpoint_init_inferior (inf_execd);
gdb::unique_xmalloc_ptr<char> exec_file_host
sigs[signum] = 1;
}
else
- {
- printf_unfiltered (_("Not confirmed, unchanged.\n"));
- gdb_flush (gdb_stdout);
- }
+ printf_unfiltered (_("Not confirmed, unchanged.\n"));
}
break;
case GDB_SIGNAL_0:
if (TYPE_STUB (elttype))
{
fprintf_filtered (stream, _("<incomplete type>"));
- gdb_flush (stream);
break;
}
else
&m2_decorations);
break;
}
- gdb_flush (stream);
}
objfile->name);
printf_unfiltered (_("You should compile with -g2 or "
"-g3 for best debugging support.\n"));
- gdb_flush (gdb_stdout);
}
#endif
}
#endif
printf_filtered ("\n");
-
- gdb_flush (gdb_stdout);
}
}
\f
else
printf_unfiltered ("Attaching to %s\n",
target_pid_to_str (ptid_t (pid)));
-
- gdb_flush (gdb_stdout);
}
inferior_ptid = do_attach (ptid_t (pid));
inf = current_inferior ();
if (TYPE_STUB (elttype))
{
fprintf_filtered (stream, "<incomplete type>");
- gdb_flush (stream);
break;
}
else
error (_("Invalid pascal type code %d in symbol table."),
TYPE_CODE (type));
}
- gdb_flush (stream);
}
\f
void
count += branch_delay_insns;
}
printf_filtered ("\n");
- gdb_flush (gdb_stdout);
}
if (need_to_update_next_address)
if (d->block && !contained_in (get_selected_block (0), d->block))
printf_filtered (_(" (cannot be evaluated in the current context)"));
printf_filtered ("\n");
- gdb_flush (gdb_stdout);
}
}
printf_filtered (_("Detaching from program: %s, %s\n"), exec_file,
target_pid_to_str (ptid_t (pid)));
- gdb_flush (gdb_stdout);
}
do_detach ();
else
printf_unfiltered (_("Attaching to %s\n"),
target_pid_to_str (ptid_t (pid)));
-
- gdb_flush (gdb_stdout);
}
xsnprintf (rs->buf.data (), get_remote_packet_size (), "vAttach;%x", pid);
++v_idx;
}
printf_filtered ("\n");
- gdb_flush (gdb_stdout);
vaddr += maxelts;
}
}
pid = inferior_ptid.pid ();
printf_unfiltered (_("Detaching from program: %s, %s\n"), exec_file,
target_pid_to_str (ptid_t (pid)));
- gdb_flush (gdb_stdout);
}
/* The inferior process has died. Long live the inferior! */
default:
error (_("Invalid type code in symbol table."));
}
- gdb_flush (stream);
}
/* Dump details of a type specified either directly or indirectly.
printf_filtered (_("(%s or %s) [answered %c; "
"input not from terminal]\n"),
y_string, n_string, def_answer);
- gdb_flush (gdb_stdout);
return def_value;
}
error (_("Unhandled type code %d in symbol table."),
TYPE_CODE (type));
}
- gdb_flush (stream);
}
/* Print using the given LANGUAGE the data of type TYPE located at
if (TYPE_STUB (real_type))
{
fprintf_filtered (stream, _("<incomplete type>"));
- gdb_flush (stream);
return;
}
fprintf_filtered (stream, ">");
}
- gdb_flush (stream);
-
return (bytes_read / width);
}
\f
else
printf_unfiltered ("Attaching to %s\n",
target_pid_to_str (ptid_t (pid)));
-
- gdb_flush (gdb_stdout);
}
do_initial_windows_stuff (this, pid, 1);
exec_file = "";
printf_unfiltered ("Detaching from program: %s, Pid %u\n", exec_file,
(unsigned) current_event.dwProcessId);
- gdb_flush (gdb_stdout);
}
x86_cleanup_dregs ();