diff options
author | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:13 -0600 |
commit | 7a02bab704afdc2c46e056da166eaaa025ff4b03 (patch) | |
tree | 77c614e16fb84496aabf50aef85343dfb328d135 /gdb/tui/tui-regs.h | |
parent | ea68593bd2c649a73754e150340ba3400c007682 (diff) | |
download | gdb-7a02bab704afdc2c46e056da166eaaa025ff4b03.zip gdb-7a02bab704afdc2c46e056da166eaaa025ff4b03.tar.gz gdb-7a02bab704afdc2c46e056da166eaaa025ff4b03.tar.bz2 |
Remove tui_expand_tabs
tui_expand_tabs only has a single caller. This patch removes this
function, in favor of a tab-expanding variant of string_file. This
simplifies the code somewhat.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
std::string.
* tui/tui-regs.c (class tab_expansion_file): New.
(tab_expansion_file::write): New method.
(tui_register_format): Change return type. Use
tab_expansion_file.
(tui_get_register, tui_data_window::display_registers_from)
(tui_data_item_window::rerender): Update.
* tui/tui-io.h (tui_expand_tabs): Don't declare.
* tui/tui-io.c (tui_expand_tabs): Remove.
Diffstat (limited to 'gdb/tui/tui-regs.h')
-rw-r--r-- | gdb/tui/tui-regs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index df8c273..250f4e7 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -52,7 +52,7 @@ struct tui_data_item_window : public tui_gen_win_info /* The register number, or data display number. */ int item_no = -1; bool highlight = false; - gdb::unique_xmalloc_ptr<char> content; + std::string content; }; /* The TUI registers window. */ |