aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-30 20:43:32 -0600
committerTom Tromey <tom@tromey.com>2019-07-17 12:19:15 -0600
commit0379b8837a875403866e2cf1a0315bee1d8d5694 (patch)
treea65bfd08eeb1e49e0262119bb0c61fd80e45f613 /gdb/tui/tui.h
parentb7fbad913e8874b9a887eb149b14975343bfb7ab (diff)
downloadfsf-binutils-gdb-0379b8837a875403866e2cf1a0315bee1d8d5694.zip
fsf-binutils-gdb-0379b8837a875403866e2cf1a0315bee1d8d5694.tar.gz
fsf-binutils-gdb-0379b8837a875403866e2cf1a0315bee1d8d5694.tar.bz2
Clean up tui_layout_command
tui_layout_command is a simple wrapper for tui_set_layout_by_name. This removes the extra layer and cleans up the resulting function a bit -- changing it to call error rather than return a result. This necessitated a small change to tui-regs.c, to avoid calling the function that is being removed. gdb/ChangeLog 2019-07-17 Tom Tromey <tom@tromey.com> * tui/tui.h (tui_set_layout_by_name): Don't declare. * tui/tui-regs.c (tui_reg_layout): New function. (tui_show_registers, tui_reg_command): Use it. * tui/tui-layout.c (LAYOUT_USAGE): Remove. (tui_layout_command): Rename from tui_set_layout_by_name. Change parameters. (tui_layout_command): Remove.
Diffstat (limited to 'gdb/tui/tui.h')
-rw-r--r--gdb/tui/tui.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index 69ad60c..76ab014 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -90,7 +90,4 @@ extern int tui_active;
extern void tui_show_source (const char *fullname, int line);
-/* tui-layout.c */
-extern enum tui_status tui_set_layout_by_name (const char *);
-
#endif /* TUI_TUI_H */