diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-09-30 00:52:27 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-09-30 00:52:27 +0000 |
commit | 52575520c355764fe525e7c6ceeede0c7dfc3706 (patch) | |
tree | 75e7305195e8b37e8a20a893315d04f8b10a40e6 /gdb/tui/tui.c | |
parent | b62460894d21d427c8c231caa6010b9935d5f9fb (diff) | |
download | gdb-52575520c355764fe525e7c6ceeede0c7dfc3706.zip gdb-52575520c355764fe525e7c6ceeede0c7dfc3706.tar.gz gdb-52575520c355764fe525e7c6ceeede0c7dfc3706.tar.bz2 |
2002-09-29 Elena Zannoni <ezannoni@redhat.com>
* tui.c (tui_show_source): Don't access current_source_symtab, use
accessor function instead. Include source.h and symtab.h
* tuiDisassem.c (tuiShowDisassemAndUpdateSource,
tuiVerticalDisassemScroll): Use accessor functions for current
source line and symtab. Include source.h.
* tuiLayout.c (_extractDisplayStartAddr): Use accessor functions
for current source line and symtab. Include source.h.
* tuiWin.c (_makeVisibleWithNewHeight): Ditto.
* tuiSourceWin.c (tuiUpdateSourceWindowAsIs,
tuiHorizontalSourceScroll): Ditto.
* tuiSource.c (tuiVerticalSourceScroll): Ditto.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r-- | gdb/tui/tui.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 81edd8b..a7c16bc 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -67,6 +67,8 @@ #include "frame.h" #include "breakpoint.h" #include "inferior.h" +#include "symtab.h" +#include "source.h" /* Tells whether the TUI is active or not. */ int tui_active = 0; @@ -543,10 +545,11 @@ _tuiReset (void) void tui_show_source (const char *file, int line) { + struct symtab_and_line cursal = get_current_source_symtab_and_line (); /* make sure that the source window is displayed */ tuiAddWinToLayout (SRC_WIN); - tuiUpdateSourceWindowsWithLine (current_source_symtab, line); + tuiUpdateSourceWindowsWithLine (cursal.symtab, line); tuiUpdateLocatorFilename (file); } |