diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 22:31:14 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 22:31:14 +0000 |
commit | 5ecb18062a4db32339e1e2288686cc3ecdb5c428 (patch) | |
tree | f0b1306544019c87e2ac2f0d3a79993cd735d260 /gdb/utils.c | |
parent | 1403b519de59bafc12b3a9e45cb074a48aabb97e (diff) | |
download | gdb-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.c | 7 |
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 |