Use ui_out_emit_table and ui_out_emit_list in print_thread_info_1
authorTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 15:15:23 +0000 (09:15 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 19:46:04 +0000 (13:46 -0600)
commitf8cc3da6e4548529eabb1ff4e9693261aae1cfee
tree3e1f0349662f7c652bca6f6d3c3c1c3aef504cd8
parent481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9
Use ui_out_emit_table and ui_out_emit_list in print_thread_info_1

This changes print_thread_info_1 to use ui_out_emit_table and
ui_out_emit_list.  Which one is used depends on whether the ui-out is
mi-like; so the emitters are wrapped in gdb::optional.

ChangeLog
2017-09-09  Tom Tromey  <tom@tromey.com>

* thread.c (print_thread_info_1): Use ui_out_emit_table,
ui_out_emit_list, gdb::optional.
gdb/ChangeLog
gdb/thread.c