public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [gdb/tui] Assume HAVE_WBORDER
@ 2023-07-12 13:27 Tom de Vries
  2023-07-12 13:55 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2023-07-12 13:27 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

The tui border-kind setting allows values acs, ascii and space.

The values ascii and space however don't work well with !HAVE_WBORDER.

Fix this by removing the !HAVE_WBORDER case, which was introduced for Ultrix
support, which is now obsolete.

Tested on x86_64-linux.

PR tui/30580
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30580
---
 gdb/config.in            | 3 ---
 gdb/configure            | 2 +-
 gdb/configure.ac         | 2 +-
 gdb/tui/tui-wingeneral.c | 4 ----
 4 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/gdb/config.in b/gdb/config.in
index a7da88b92d7..bc562669d2c 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -568,9 +568,6 @@
 /* Define to 1 if you have the <wait.h> header file. */
 #undef HAVE_WAIT_H
 
-/* Define to 1 if you have the `wborder' function. */
-#undef HAVE_WBORDER
-
 /* Define to 1 if you have the <windows.h> header file. */
 #undef HAVE_WINDOWS_H
 
diff --git a/gdb/configure b/gdb/configure
index 5bb2a0795e5..637f9cd7296 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -23452,7 +23452,7 @@ for ac_func in getuid getgid \
 		pipe pread pread64 pwrite resize_term \
 		getpgid setsid \
 		sigaction sigsetmask socketpair \
-		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
+		ttrace wresize setlocale iconvlist libiconvlist btowc \
 		setrlimit getrlimit posix_madvise waitpid \
 		use_default_colors
 do :
diff --git a/gdb/configure.ac b/gdb/configure.ac
index fb43cd10d6c..97c6bf0ed5f 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1344,7 +1344,7 @@ AC_CHECK_FUNCS([getuid getgid \
 		pipe pread pread64 pwrite resize_term \
 		getpgid setsid \
 		sigaction sigsetmask socketpair \
-		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
+		ttrace wresize setlocale iconvlist libiconvlist btowc \
 		setrlimit getrlimit posix_madvise waitpid \
 		use_default_colors])
 AM_LANGINFO_CODESET
diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c
index 385e6e5d68d..2b63499683e 100644
--- a/gdb/tui/tui-wingeneral.c
+++ b/gdb/tui/tui-wingeneral.c
@@ -98,14 +98,10 @@ box_win (struct tui_win_info *win_info,
 			   ? tui_active_border_style.style ()
 			   : tui_border_style.style ()));
   wattron (win, attrs);
-#ifdef HAVE_WBORDER
   wborder (win, tui_border_vline, tui_border_vline,
 	   tui_border_hline, tui_border_hline,
 	   tui_border_ulcorner, tui_border_urcorner,
 	   tui_border_llcorner, tui_border_lrcorner);
-#else
-  box (win, tui_border_vline, tui_border_hline);
-#endif
   if (!win_info->title.empty ())
     {
       /* Emit "+-TITLE-+" -- so 2 characters on the right and 2 on

base-commit: 664ac93fa86a974aaf42497a58bc1c05dde09909
-- 
2.35.3


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

* Re: [PATCH] [gdb/tui] Assume HAVE_WBORDER
  2023-07-12 13:27 [PATCH] [gdb/tui] Assume HAVE_WBORDER Tom de Vries
@ 2023-07-12 13:55 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2023-07-12 13:55 UTC (permalink / raw)
  To: Tom de Vries via Gdb-patches; +Cc: Tom de Vries, Tom Tromey

>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> The tui border-kind setting allows values acs, ascii and space.
Tom> The values ascii and space however don't work well with !HAVE_WBORDER.

Tom> Fix this by removing the !HAVE_WBORDER case, which was introduced for Ultrix
Tom> support, which is now obsolete.

Tom> Tested on x86_64-linux.

Tom> PR tui/30580
Tom> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30580

Thank you.
Approved-By: Tom Tromey <tom@tromey.com>

Tom

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

end of thread, other threads:[~2023-07-12 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-12 13:27 [PATCH] [gdb/tui] Assume HAVE_WBORDER Tom de Vries
2023-07-12 13:55 ` Tom Tromey

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).