binutils-gdb/gdb/tui
Tom de Vries ec1115b344 [gdb/tui] Remove default entries in TUI translation tables
The TUI translation tables contain default entries at the end:
...
static struct tui_translate tui_border_kind_translate_hline[] = {
  { "space",    ' ' },
  { "ascii",    '-' },
  { "acs",      -1 },
  { 0, 0 },
  { "ascii",    '-' }
};
...

A simpler way of implementing this would be to to declare the first (or last)
entry the default, but in fact these default entries are not used.

Make this explicit by removing the default entries, and asserting in translate
that an entry will always be found.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
2023-07-12 12:07:40 +02:00
..
ChangeLog-1998-2003
tui-command.c
tui-command.h
tui-data.c Update TUI window title when changed 2023-07-10 13:48:22 -06:00
tui-data.h Update TUI window title when changed 2023-07-10 13:48:22 -06:00
tui-disasm.c
tui-disasm.h
tui-file.c
tui-file.h
tui-hooks.c
tui-hooks.h
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/tui] Simplify tui_puts_internal 2023-06-09 16:44:12 +02:00
tui-io.h
tui-layout.c [gdb/tui] Fix fingerprint for cmd-only layout 2023-05-31 07:39:31 +02:00
tui-layout.h [gdb/tui] Fix fingerprint for cmd-only layout 2023-05-31 07:39:31 +02:00
tui-location.c
tui-location.h
tui-out.c
tui-out.h
tui-regs.c [gdb] Fix typos 2023-06-03 22:43:57 +02:00
tui-regs.h
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
tui-stack.c [gdb/tui] Fix length of status line string 2023-04-26 18:15:56 +02:00
tui-stack.h
tui-win.c [gdb/tui] Remove default entries in TUI translation tables 2023-07-12 12:07:40 +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 [gdb] Fix typos 2023-06-03 22:43:57 +02:00
tui-wingeneral.h
tui-winsource.c [gdb] Fix typos 2023-06-03 22:43:57 +02:00
tui-winsource.h [gdb] Fix more typos 2023-06-05 12:53:15 +02:00
tui.c [gdb/tui] Delete line buffer when switching to singlekey 2023-06-09 16:39:27 +02:00
tui.h gdb/tui: more debug output 2023-01-27 16:20:10 +00:00