This is the mail archive of the gdb-patches@sourceware.org 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 2/2]: Fix clean compile on AIX 5.3


AIX curses doesn't define 'clear'. It should be #define clear()
wclear(stdscr), but this is missing from the headers. It can be worked
around by using erase and clearok, or maybe there is a better way?

2012-03-12  Chris January  <chris.january@allinea.com>

        * tui-tui.win.c (tui_resize_all): Use erase and clearok instead 
        of clear.
---
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index b48bf3e..d02cd7a 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -693,7 +693,8 @@ tui_resize_all (void)
 	    cmd_split_diff++;
 	}
       /* Now adjust each window.  */
-      clear ();
+      erase ();
+      clearok (curscr, TRUE);
       refresh ();
       switch (cur_layout)
 	{



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