aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 11:48:26 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 11:48:28 -0700
commit3fe12b6d67182a81d2ffabbfe405fb5ffc0694b2 (patch)
tree24a30e918d35942edfea2709cabc79f663ed07e0 /gdb/tui
parent59b8b5d2477440a21b580dbf59281a9e2795e1dc (diff)
downloadbinutils-3fe12b6d67182a81d2ffabbfe405fb5ffc0694b2.zip
binutils-3fe12b6d67182a81d2ffabbfe405fb5ffc0694b2.tar.gz
binutils-3fe12b6d67182a81d2ffabbfe405fb5ffc0694b2.tar.bz2
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
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index bedf55c..f0dfdef 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. */