This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] readline branch/TUI


I just committed this to the readline_4_3-import-branch. 

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.


Index: tuiRegs.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiRegs.c,v
retrieving revision 1.12
diff -u -p -r1.12 tuiRegs.c
--- tuiRegs.c   1 Mar 2002 06:19:28 -0000       1.12
+++ tuiRegs.c   27 Aug 2002 16:18:22 -0000
@@ -639,7 +639,7 @@ _tuiRegisterFormat (char *buf, int bufLe
   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: tuiWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiWin.c,v
retrieving revision 1.19
diff -u -p -r1.19 tuiWin.c
--- tuiWin.c    1 Mar 2002 06:19:28 -0000       1.19
+++ tuiWin.c    27 Aug 2002 16:20:10 -0000
@@ -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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]