Fix PR gdb/675
* tuiWin.c: Include readline/readline.h. Use accessor function
rl_get_screen_size.
* tuiRegs.c (_tuiRegisterFormat): Use DO_REGISTERS_INFO instead of
do_registers_info.
+2002-08-27 Elena Zannoni <ezannoni@redhat.com>
+
+ Fix PR gdb/675
+ * tuiWin.c: Include readline/readline.h. Use accessor function
+ rl_get_screen_size.
+
+ * tuiRegs.c (_tuiRegisterFormat): Use DO_REGISTERS_INFO instead of
+ do_registers_info.
+
2002-08-18 Daniel Jacobowitz <drow@mvista.com>
Fix PR gdb/655
stream = tui_sfileopen (bufLen);
gdb_stdout = stream;
cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout);
- do_registers_info (regNum, 0);
+ DO_REGISTERS_INFO (regNum, 0);
/* Save formatted output in the buffer. */
p = tui_file_get_strbuf (stream);
#include <string.h>
#include <ctype.h>
+#include <readline/readline.h>
#include "defs.h"
#include "command.h"
#include "symtab.h"
tuiResizeAll (void)
{
int heightDiff, widthDiff;
- extern int screenheight, screenwidth; /* in readline */
+ int screenheight, screenwidth;
+ rl_get_screen_size (&screenheight, &screenwidth);
widthDiff = screenwidth - termWidth ();
heightDiff = screenheight - termHeight ();
if (heightDiff || widthDiff)