Change tui_source_element::line to have type std::string
authorTom Tromey <tom@tromey.com>
Mon, 21 Oct 2019 16:58:08 +0000 (10:58 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 5 Nov 2019 22:23:36 +0000 (15:23 -0700)
commit5d0510553eb447bf6861f4641b5ae3aaf9503a13
treee5e9abf7cc0fdc983ac6dbcc32c8659a712b17b2
parentade7beeae467e81b809fc124d8bfc2f3c4a8c8ab
Change tui_source_element::line to have type std::string

This changes tui_source_element::line to be of type std::string.  This
reduces the number of copies made.

gdb/ChangeLog
2019-11-05  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.h (struct tui_source_element) <line>: Now a
std::string.
* tui/tui-winsource.c (tui_show_source_line): Update.
* tui/tui-source.c (tui_source_window::set_contents): Update.
* tui/tui-disasm.c (tui_disasm_window::set_contents): Update.

Change-Id: Id600f3e1d386a2911f187366e05e2ec599068dd2
gdb/ChangeLog
gdb/tui/tui-disasm.c
gdb/tui/tui-source.c
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h