forked from Imagelibrary/binutils-gdb
Remove verbosity from ui_out_message and friends
That concept is never actually used, so it's just a burden. Removing it facilitates the refactoring in upcoming patches. gdb/ChangeLog: * mi/mi-out.c (mi_message): Remove verbosity argument. * ada-tasks.c (print_ada_task_info, info_task, task_command): Update call. * auto-load.c (auto_load_info_scripts): Likewise. * breakpoint.c (breakpoint_1, watchpoints_info, tracepoints_info): Likewise. * cli-out.c (cli_message): Remove verbosity argument. * inferior.c (print_inferior): Update call. * linux-thread-db.c (info_auto_load_libthread_db): Likewise. * probe.c (info_probes_for_ops): Likewise. * skip.c (skip_info): Likewise. * solib.c (info_sharedlibrary_command): Likewise. * symfile.c (load_progress): Likewise. * thread.c (print_thread_info_1): Likewise. * ui-out.c (uo_message, ui_out_message): Remove verbosity argument. (ui_out_get_verblvl): Remove. * ui-out.h (ui_out_message): Remove verbosity argument. (ui_out_get_verblvl): Remove. (message_ftype): Remove verbosity argument.
This commit is contained in:
@@ -1231,9 +1231,9 @@ print_thread_info_1 (struct ui_out *uiout, char *requested_threads,
|
||||
if (n_threads == 0)
|
||||
{
|
||||
if (requested_threads == NULL || *requested_threads == '\0')
|
||||
ui_out_message (uiout, 0, _("No threads.\n"));
|
||||
ui_out_message (uiout, _("No threads.\n"));
|
||||
else
|
||||
ui_out_message (uiout, 0, _("No threads match '%s'.\n"),
|
||||
ui_out_message (uiout, _("No threads match '%s'.\n"),
|
||||
requested_threads);
|
||||
do_cleanups (old_chain);
|
||||
return;
|
||||
@@ -1372,12 +1372,12 @@ print_thread_info_1 (struct ui_out *uiout, char *requested_threads,
|
||||
}
|
||||
|
||||
if (!ptid_equal (inferior_ptid, null_ptid) && is_exited (inferior_ptid))
|
||||
ui_out_message (uiout, 0, "\n\
|
||||
ui_out_message (uiout, "\n\
|
||||
The current thread <Thread ID %s> has terminated. See `help thread'.\n",
|
||||
print_thread_id (inferior_thread ()));
|
||||
else if (thread_list != NULL
|
||||
&& ptid_equal (inferior_ptid, null_ptid))
|
||||
ui_out_message (uiout, 0, "\n\
|
||||
ui_out_message (uiout, "\n\
|
||||
No selected thread. See `help thread'.\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user