diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-17 22:22:40 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-17 22:22:40 +0000 |
commit | 84b1e7c7ee7e32bf88270c46f0ee1cbf002a09c3 (patch) | |
tree | 2dc9a434f39f10d741876f20a2253d2301f098ed /gdb/tui/tuiWin.c | |
parent | 7e5a932280d5d0cd731a09e195c9e7a25c1677d4 (diff) | |
download | gdb-84b1e7c7ee7e32bf88270c46f0ee1cbf002a09c3.zip gdb-84b1e7c7ee7e32bf88270c46f0ee1cbf002a09c3.tar.gz gdb-84b1e7c7ee7e32bf88270c46f0ee1cbf002a09c3.tar.bz2 |
* tuiWin.c: Add missing includes.
(_makeVisibleWithNewHeight): Fix call to find_line_pc.
* tuiLayout.c: Add missing includes.
(_initAndMakeWin): Don't put curses in echo mode.
(_extractDisplayStartAddr): Fix calls to find_line_pc.
(_tuiLayout_command): Missing ',' in warning call.
* tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
find_line_pc.
(tuiSetHasBreakAt): Check for null source file.
Diffstat (limited to 'gdb/tui/tuiWin.c')
-rw-r--r-- | gdb/tui/tuiWin.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index 3843eb6..4c3acd2 100644 --- a/gdb/tui/tuiWin.c +++ b/gdb/tui/tuiWin.c @@ -25,6 +25,7 @@ Author: Susan B. Macchia */ #include <string.h> +#include <ctype.h> #include "defs.h" #include "command.h" #include "symtab.h" @@ -35,6 +36,9 @@ #include "tuiData.h" #include "tuiGeneralWin.h" #include "tuiStack.h" +#include "tuiRegs.h" +#include "tuiDisassem.h" +#include "tuiSource.h" #include "tuiSourceWin.h" #include "tuiDataWin.h" @@ -1221,7 +1225,12 @@ _makeVisibleWithNewHeight (TuiWinInfoPtr winInfo) if (winInfo->generic.type == SRC_WIN) line = (Opaque) current_source_line; else - line = (Opaque) find_line_pc (s, current_source_line); + { + CORE_ADDR pc; + + find_line_pc (s, current_source_line, &pc); + line = (Opaque) pc; + } tuiUpdateSourceWindow (winInfo, s, line, TRUE); } if (m_hasLocator (winInfo)) |