summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-18 14:08:53 -0600
committerTom Tromey <tom@tromey.com>2019-08-30 12:57:09 -0600
commit900ac24287a26146a6a5f4b3b9d6610f3b574428 (patch)
treed0365de6d64a6f814ce6d0f68ac3f01c062c14b2
parent99ab33fb2dab538b13df0f8c02ea02ff1fd6c4db (diff)
downloadbinutils-gdb-900ac24287a26146a6a5f4b3b9d6610f3b574428.tar.gz
Make tui_locator_window::set_locator_fullname re-render
This changes tui_locator_window::set_locator_fullname to re-render the locator window, so that the callers don't need to do this. gdb/ChangeLog 2019-08-30 Tom Tromey <tom@tromey.com> * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call rerender. (tui_update_locator_fullname, tui_show_frame_info): Don't call tui_show_locator_content.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/tui/tui-stack.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8905a2424a7..38619ef6479 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2019-08-30 Tom Tromey <tom@tromey.com>
+ * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
+ rerender.
+ (tui_update_locator_fullname, tui_show_frame_info): Don't call
+ tui_show_locator_content.
+
+2019-08-30 Tom Tromey <tom@tromey.com>
+
* tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
(tui_locator_window::rerender): Rewrite using body of previous
tui_show_locator_content.
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 48062fed712..f6b6bb72b2a 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -284,6 +284,7 @@ tui_locator_window::set_locator_fullname (const char *fullname)
locator->full_name[0] = 0;
strcat_to_buf (locator->full_name, MAX_LOCATOR_ELEMENT_LEN, fullname);
+ rerender ();
}
/* See tui-stack.h. */
@@ -328,7 +329,6 @@ tui_update_locator_fullname (const char *fullname)
struct tui_locator_window *locator = tui_locator_win_info_ptr ();
locator->set_locator_fullname (fullname);
- tui_show_locator_content ();
}
/* Function to print the frame information for the TUI. The windows are
@@ -372,7 +372,6 @@ tui_show_frame_info (struct frame_info *fi)
if (!locator_changed_p)
return 0;
- tui_show_locator_content ();
for (struct tui_source_window_base *win_info : tui_source_windows ())
{
win_info->maybe_update (fi, sal, locator->line_no, locator->addr);
@@ -389,7 +388,6 @@ tui_show_frame_info (struct frame_info *fi)
if (!locator_changed_p)
return 0;
- tui_show_locator_content ();
for (struct tui_source_window_base *win_info : tui_source_windows ())
{
win_info->erase_source_content ();