diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-08-27 16:23:29 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-08-27 16:23:29 +0000 |
commit | 82665a33bf561fae6afb9808b799ae334c6f1269 (patch) | |
tree | e8d341b0ae0f0314ad0a768e5661fa628f095071 | |
parent | 72daee80beadda8c99b66f2a385362b0b09d8bc3 (diff) | |
download | gdb-readline_4_3-import-branch.zip gdb-readline_4_3-import-branch.tar.gz gdb-readline_4_3-import-branch.tar.bz2 |
2002-08-27 Elena Zannoni <ezannoni@redhat.com>readline_4_3-import-branch
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.
-rw-r--r-- | gdb/tui/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/tui/tuiRegs.c | 2 | ||||
-rw-r--r-- | gdb/tui/tuiWin.c | 4 |
3 files changed, 13 insertions, 2 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index 16d4835..4b20057 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -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 diff --git a/gdb/tui/tuiRegs.c b/gdb/tui/tuiRegs.c index d76c67e..22507d4 100644 --- a/gdb/tui/tuiRegs.c +++ b/gdb/tui/tuiRegs.c @@ -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); diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index a33f661..cd2667f 100644 --- a/gdb/tui/tuiWin.c +++ b/gdb/tui/tuiWin.c @@ -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) |