aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-02 11:36:44 -0700
committerTom Tromey <tom@tromey.com>2022-03-29 12:46:24 -0600
commit0426ad513f93bb1c5805988e60d6f87fbe738860 (patch)
tree6ad0f94f9b2a907623df38db9dd7727fe80f5d51 /gdb/tui
parent19a7b8ab871b92dee32a0ebffe274388d3426564 (diff)
downloadgdb-0426ad513f93bb1c5805988e60d6f87fbe738860.zip
gdb-0426ad513f93bb1c5805988e60d6f87fbe738860.tar.gz
gdb-0426ad513f93bb1c5805988e60d6f87fbe738860.tar.bz2
Unify gdb puts functions
Now that filtered and unfiltered output can be treated identically, we can unify the puts family of functions. This is done under the name "gdb_puts". Most of this patch was written by script.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-layout.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index cef9190..eb98e0f 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -471,7 +471,7 @@ tui_layout_window::replace_window (const char *name, const char *new_window)
void
tui_layout_window::specification (ui_file *output, int depth)
{
- fputs_unfiltered (get_name (), output);
+ gdb_puts (get_name (), output);
}
/* See tui-layout.h. */
@@ -806,23 +806,23 @@ void
tui_layout_split::specification (ui_file *output, int depth)
{
if (depth > 0)
- fputs_unfiltered ("{", output);
+ gdb_puts ("{", output);
if (!m_vertical)
- fputs_unfiltered ("-horizontal ", output);
+ gdb_puts ("-horizontal ", output);
bool first = true;
for (auto &item : m_splits)
{
if (!first)
- fputs_unfiltered (" ", output);
+ gdb_puts (" ", output);
first = false;
item.layout->specification (output, depth + 1);
fprintf_unfiltered (output, " %d", item.weight);
}
if (depth > 0)
- fputs_unfiltered ("}", output);
+ gdb_puts ("}", output);
}
/* Destroy the layout associated with SELF. */