• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂82665a33bf561fae6afb9808b799ae334c6f1269 (tree)
時間2002-08-28 01:23:29
作者Elena Zannoni <ezannoni@kwik...>
CommiterElena Zannoni

Log Message

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.

Change Summary

差異

--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -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+
110 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
211
312 Fix PR gdb/655
--- a/gdb/tui/tuiRegs.c
+++ b/gdb/tui/tuiRegs.c
@@ -639,7 +639,7 @@ _tuiRegisterFormat (char *buf, int bufLen, int regNum,
639639 stream = tui_sfileopen (bufLen);
640640 gdb_stdout = stream;
641641 cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout);
642- do_registers_info (regNum, 0);
642+ DO_REGISTERS_INFO (regNum, 0);
643643
644644 /* Save formatted output in the buffer. */
645645 p = tui_file_get_strbuf (stream);
--- a/gdb/tui/tuiWin.c
+++ b/gdb/tui/tuiWin.c
@@ -46,6 +46,7 @@
4646
4747 #include <string.h>
4848 #include <ctype.h>
49+#include <readline/readline.h>
4950 #include "defs.h"
5051 #include "command.h"
5152 #include "symtab.h"
@@ -639,8 +640,9 @@ void
639640 tuiResizeAll (void)
640641 {
641642 int heightDiff, widthDiff;
642- extern int screenheight, screenwidth; /* in readline */
643+ int screenheight, screenwidth;
643644
645+ rl_get_screen_size (&screenheight, &screenwidth);
644646 widthDiff = screenwidth - termWidth ();
645647 heightDiff = screenheight - termHeight ();
646648 if (heightDiff || widthDiff)