]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-08-27 Elena Zannoni <ezannoni@redhat.com> readline_4_3-import-branch
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 27 Aug 2002 16:23:29 +0000 (16:23 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 27 Aug 2002 16:23:29 +0000 (16:23 +0000)
       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.

gdb/tui/ChangeLog
gdb/tui/tuiRegs.c
gdb/tui/tuiWin.c

index 16d4835a435c76475ac83aabf2bb3d8753b61540..4b200577fcdab68a4bb61c350cea7c70c2275a12 100644 (file)
@@ -1,3 +1,12 @@
+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
index d76c67ea8beea370a1758596c91f2d85f9e5ac4f..22507d4d289fdd55f8a78040283c3b0ddf7bf887 100644 (file)
@@ -639,7 +639,7 @@ _tuiRegisterFormat (char *buf, int bufLen, int regNum,
   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);
index a33f6613606269338f9f0f27926b6d4b370bb077..cd2667f9cc1ff4e3c50677729f3f56ecfc0af214 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <string.h>
 #include <ctype.h>
+#include <readline/readline.h>
 #include "defs.h"
 #include "command.h"
 #include "symtab.h"
@@ -639,8 +640,9 @@ void
 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)