diff options
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index c1626ff..6072685 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1621,15 +1621,14 @@ info_auto_load_libthread_db (char *args, int from_tty) /* Table header shifted right by preceding "libthread-db: " would not match its columns. */ if (info_count > 0 && args == auto_load_info_scripts_pattern_nl) - ui_out_text (uiout, "\n"); + uiout->text ("\n"); make_cleanup_ui_out_table_begin_end (uiout, 2, unique_filenames, "LinuxThreadDbTable"); - ui_out_table_header (uiout, max_filename_len, ui_left, "filename", - "Filename"); - ui_out_table_header (uiout, pids_len, ui_left, "PIDs", "Pids"); - ui_out_table_body (uiout); + uiout->table_header (max_filename_len, ui_left, "filename", "Filename"); + uiout->table_header (pids_len, ui_left, "PIDs", "Pids"); + uiout->table_body (); pids = (char *) xmalloc (max_pids_len + 1); make_cleanup (xfree, pids); @@ -1641,7 +1640,7 @@ info_auto_load_libthread_db (char *args, int from_tty) char *pids_end; info = array[i]; - ui_out_field_string (uiout, "filename", info->filename); + uiout->field_string ("filename", info->filename); pids_end = pids; while (i < info_count && strcmp (info->filename, array[i]->filename) == 0) @@ -1659,16 +1658,16 @@ info_auto_load_libthread_db (char *args, int from_tty) } *pids_end = '\0'; - ui_out_field_string (uiout, "pids", pids); + uiout->field_string ("pids", pids); - ui_out_text (uiout, "\n"); + uiout->text ("\n"); do_cleanups (chain); } do_cleanups (back_to); if (info_count == 0) - ui_out_message (uiout, _("No auto-loaded libthread-db.\n")); + uiout->message (_("No auto-loaded libthread-db.\n")); } static void |