GNU Binutils with patches for OS216
修訂 | 82665a33bf561fae6afb9808b799ae334c6f1269 (tree) |
---|---|
時間 | 2002-08-28 01:23:29 |
作者 | Elena Zannoni <ezannoni@kwik...> |
Commiter | Elena Zannoni |
2002-08-27 Elena Zannoni <ezannoni@redhat.com>
@@ -1,3 +1,12 @@ | ||
1 | +2002-08-27 Elena Zannoni <ezannoni@redhat.com> | |
2 | + | |
3 | + Fix PR gdb/675 | |
4 | + * tuiWin.c: Include readline/readline.h. Use accessor function | |
5 | + rl_get_screen_size. | |
6 | + | |
7 | + * tuiRegs.c (_tuiRegisterFormat): Use DO_REGISTERS_INFO instead of | |
8 | + do_registers_info. | |
9 | + | |
1 | 10 | 2002-08-18 Daniel Jacobowitz <drow@mvista.com> |
2 | 11 | |
3 | 12 | Fix PR gdb/655 |
@@ -639,7 +639,7 @@ _tuiRegisterFormat (char *buf, int bufLen, int regNum, | ||
639 | 639 | stream = tui_sfileopen (bufLen); |
640 | 640 | gdb_stdout = stream; |
641 | 641 | cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout); |
642 | - do_registers_info (regNum, 0); | |
642 | + DO_REGISTERS_INFO (regNum, 0); | |
643 | 643 | |
644 | 644 | /* Save formatted output in the buffer. */ |
645 | 645 | p = tui_file_get_strbuf (stream); |
@@ -46,6 +46,7 @@ | ||
46 | 46 | |
47 | 47 | #include <string.h> |
48 | 48 | #include <ctype.h> |
49 | +#include <readline/readline.h> | |
49 | 50 | #include "defs.h" |
50 | 51 | #include "command.h" |
51 | 52 | #include "symtab.h" |
@@ -639,8 +640,9 @@ void | ||
639 | 640 | tuiResizeAll (void) |
640 | 641 | { |
641 | 642 | int heightDiff, widthDiff; |
642 | - extern int screenheight, screenwidth; /* in readline */ | |
643 | + int screenheight, screenwidth; | |
643 | 644 | |
645 | + rl_get_screen_size (&screenheight, &screenwidth); | |
644 | 646 | widthDiff = screenwidth - termWidth (); |
645 | 647 | heightDiff = screenheight - termHeight (); |
646 | 648 | if (heightDiff || widthDiff) |