public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix latent display bug in tui_data_window
@ 2020-03-06  9:49 gdb-buildbot
  2020-03-06  9:50 ` Failures on Fedora-x86_64-m64, branch master gdb-buildbot
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gdb-buildbot @ 2020-03-06  9:49 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 3fe12b6d67182a81d2ffabbfe405fb5ffc0694b2 ***

commit 3fe12b6d67182a81d2ffabbfe405fb5ffc0694b2
Author:     Tom Tromey <tom@tromey.com>
AuthorDate: Sat Feb 22 11:48:26 2020 -0700
Commit:     Tom Tromey <tom@tromey.com>
CommitDate: Sat Feb 22 11:48:28 2020 -0700

    Fix latent display bug in tui_data_window
    
    tui_data_window creates new curses windows, but does not pass in
    coordinates relative to the data window's origin.  This means that the
    data window could only ever be displayed as the topmost window in a
    layout.  This is not a currently problem, because all the existing
    layouts do this; but a subsequent patch will add user-defined layouts,
    which could do otherwise.
    
    gdb/ChangeLog
    2020-02-22  Tom Tromey  <tom@tromey.com>
    
            * tui/tui-regs.c (tui_data_window::display_registers_from): Use
            correct coordinates.
    
    Change-Id: I5101f2b2869557b87381ebdeebd9b7fd28687831

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 10a07df5d3..e35d5c5bc3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-22  Tom Tromey  <tom@tromey.com>
+
+	* tui/tui-regs.c (tui_data_window::display_registers_from): Use
+	correct coordinates.
+
 2020-02-22  Tom Tromey  <tom@tromey.com>
 
 	* tui/tui-layout.h (tui_add_win_to_layout): Add comment.
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index bedf55cab8..f0dfdefc80 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -274,7 +274,7 @@ tui_data_window::display_registers_from (int start_element_no)
 	{
 	  /* Create the window if necessary.  */
 	  m_regs_content[i].resize (1, item_win_width,
-				    (item_win_width * j) + 1, cur_y);
+				    x + (item_win_width * j) + 1, y + cur_y);
 	  i++;		/* Next register.  */
 	}
       cur_y++;		/* Next row.  */


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-08 20:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06  9:49 [binutils-gdb] Fix latent display bug in tui_data_window gdb-buildbot
2020-03-06  9:50 ` Failures on Fedora-x86_64-m64, branch master gdb-buildbot
2020-03-06 10:24 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2020-03-06 10:25 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot
2020-03-06 15:34 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " gdb-buildbot
2020-03-07 14:03 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot
2020-03-08 20:40 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).