aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-07-21 22:31:14 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-07-21 22:31:14 +0000
commit5ecb18062a4db32339e1e2288686cc3ecdb5c428 (patch)
treef0b1306544019c87e2ac2f0d3a79993cd735d260 /gdb/utils.c
parent1403b519de59bafc12b3a9e45cb074a48aabb97e (diff)
downloadgdb-5ecb18062a4db32339e1e2288686cc3ecdb5c428.zip
gdb-5ecb18062a4db32339e1e2288686cc3ecdb5c428.tar.gz
gdb-5ecb18062a4db32339e1e2288686cc3ecdb5c428.tar.bz2
* utils.c (init_page_info): Use tui_get_command_dimension.
* printcmd.c (disassemble_command): Simplify tui specific code, use tui_is_window_visible, tui_show_assembly.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index c66167b..82d010b 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1500,12 +1500,7 @@ void
init_page_info (void)
{
#if defined(TUI)
- if (tui_version && m_winPtrNotNull (cmdWin))
- {
- lines_per_page = cmdWin->generic.height;
- chars_per_line = cmdWin->generic.width;
- }
- else
+ if (!tui_get_command_dimension (&chars_per_line, &lines_per_page))
#endif
{
/* These defaults will be used if we are unable to get the correct