binutils-gdb/gdb/tui
Tom de Vries 927dd36dba [gdb/tui] Fix buglet in tui_update_variables
I noticed a buglet in tui_update_variables:
...
   entry = translate (tui_border_kind, tui_border_kind_translate_lrcorner);
   if (tui_border_lrcorner != (chtype) entry->value)
    {
      tui_border_lrcorner = (entry->value < 0) ? ACS_LRCORNER : entry->value;
...

When assigning the new value to tui_border_lrcorner, an entry->value of -1 is
taken into account, but not when comparing to the current value of
tui_border_lrcorner.

Fix this by introducing:
...
  int val = (entry->value < 0) ? ACS_LRCORNER : entry->value;
...
and using this in both comparison and assignment.

Tested on x86_64-linux.
2023-05-22 16:44:56 +02:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-command.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-data.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-data.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-disasm.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-disasm.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-file.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-file.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-hooks.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-hooks.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-interp.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui-io.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui-io.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-layout.c gdb: Fix building with latest libc++ 2023-04-29 00:35:11 -07:00
tui-layout.h gdb/tui: improve errors from tui focus command 2023-01-27 16:20:10 +00:00
tui-location.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-location.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-out.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-out.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-regs.c Remove a use of pagination_enabled 2023-02-14 13:54:44 -07:00
tui-regs.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-source.c [gdb/tui] Don't show line number for lines not in source file 2023-05-16 17:40:32 +02:00
tui-source.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-stack.c [gdb/tui] Fix length of status line string 2023-04-26 18:15:56 +02:00
tui-stack.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-win.c [gdb/tui] Fix buglet in tui_update_variables 2023-05-22 16:44:56 +02:00
tui-win.h [gdb/tui] Add maint set/show tui-left-margin-verbose 2023-04-13 00:18:12 +02:00
tui-wingeneral.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-wingeneral.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tui-winsource.c gdb: Fix building with latest libc++ 2023-04-29 00:35:11 -07:00
tui-winsource.h [gdb/tui] Fix left margin in disassembly window 2023-04-13 00:18:12 +02:00
tui.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
tui.h gdb/tui: more debug output 2023-01-27 16:20:10 +00:00