aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-09-01 16:12:52 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-09-01 16:12:52 +0000
commit27229e99915e0a4bed28d2a9428a73c34df99415 (patch)
tree547de03607e71b8a36e6f30c80651e15f06dc222 /gdb/tui
parentcda8ab404866295418b3a8d549cf78f566e0b625 (diff)
downloadgdb-27229e99915e0a4bed28d2a9428a73c34df99415.zip
gdb-27229e99915e0a4bed28d2a9428a73c34df99415.tar.gz
gdb-27229e99915e0a4bed28d2a9428a73c34df99415.tar.bz2
* tui-out.c (tui_out_new): Clear start_of_line.
* tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines to update the current source line.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/ChangeLog6
-rw-r--r--gdb/tui/tui-out.c2
-rw-r--r--gdb/tui/tuiSource.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 4a190ed..2031587 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,5 +1,11 @@
2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
+ * tui-out.c (tui_out_new): Clear start_of_line.
+ * tuiSource.c (tuiVerticalSourceScroll): Use print_source_lines
+ to update the current source line.
+
+2002-09-01 Stephane Carrez <stcarrez@nerim.fr>
+
* tui-hooks.c (tui_detach_hook): New hook to know when a process dies.
(tui_install_hooks): Install it.
(tui_remove_hooks): Remove it.
diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c
index a8cc58b..71ce5e0 100644
--- a/gdb/tui/tui-out.c
+++ b/gdb/tui/tui-out.c
@@ -398,7 +398,7 @@ tui_out_new (struct ui_file *stream)
data->stream = stream;
data->suppress_output = 0;
data->line = -1;
- data->start_of_line = 1;
+ data->start_of_line = 0;
return ui_out_new (&tui_ui_out_impl, data, flags);
}
diff --git a/gdb/tui/tuiSource.c b/gdb/tui/tuiSource.c
index 3c1b81e..0d59bf0 100644
--- a/gdb/tui/tuiSource.c
+++ b/gdb/tui/tuiSource.c
@@ -359,7 +359,7 @@ tuiVerticalSourceScroll (TuiScrollDirection scrollDirection,
if (l.lineNo <= 0)
l.lineNo = 1;
}
- if (identify_source_line (s, l.lineNo, 0, -1) == 1)
- tuiUpdateSourceWindowAsIs (srcWin, s, l, FALSE);
+
+ print_source_lines (s, l.lineNo, l.lineNo + 1, 0);
}
}